fix connect timeout error problem. (I'll clean it up later.)