fixed search query error