Fix bug for singleton design pattern implementation in MongoConfig (#20)