Fixed Error in getSearchResults