Fixed issue with ObjectId not working in model creation.