mongoDB inline count fix