Fix conversion of equalities to mongo