fixed broken backspace functionality