Fix search history