fix bug with backspace