Fix for MongoID