fix issue where object is not being passed as a search result, only the index number