Fix backspace bugs