fixed minor autocomplete bug