Fix search_n