fixing search controller