fix typeahead error