Fixed search controller to have some chance of working.