Fixes backspace behavior