fix backspace search bug