fixed bugs with urllib3