fixing typeahead