Fix search() flags.