fixed search query issue