Fixed fields order bug in mongoengine.