Fixing search controller.