fixing searching query