Fixing filter in  predicate.