Fix filtering on a collection.