fix issue with typeahead