Have you tried editing the history file directly:
~/.bash_history
Note You need to close the terminal since history for current terminal kept in memory. So you won't see last typed commands in your .bash_history
file. Hence Open another terminal and edit ~/.bash_history
.