Fix the filter method