Fixed search and autocomplete api calls