fixing backspace issue