Fix bug with filter method on class filters.