fixes search for search terms