Fixing predicate issue with mongo