Fix search mode