fix backspace behaviour