Bug fix: MongoId object not preserved