autocomplete bug fix