fixing mongo issue