Fixed ConnectionError on Socket