fixed typeahead syntax