Fix the search controller