search query issue fix