Fix autocomplete ignoring the last entered letter.