fixed mongo connection issue