Fix search() metnod