Fixing Mongo construction issue