Fixed bugs with backspacing