fixed typeahead enter problem