fixing the search feature