search fix when using backspace
polishing