bug fixing: search query