fixed a bug in Ben's code

Crash when you backspace past the beginning of the line