Fix over-limited query that apparently worked before due to a mongoengine bug.