Debugged the filter search