bug fix on autocomplete.