Fixed bug in the MongoDb data model.