Get typeahead working correctly.