fix search controller