fix mongo issues