Fix weird connection refused error