small fix in autocomplete