fix backspace bug