general search query fix