Fix displaying an error when the search is illegal.
Fix autocomplete problems.