Fix search path in the search method