search functionality fix