fix auto-complete not working after backspace have pressed.