Minor bugfix in autocomplete.