make backspace work as expected