fixed mongo issues