fix search query