Fix bug stopping ajax typeahead from working