Fix search method queries