fix connection refused issue