fix connect refuse erorr