fix for mongo class