Fix a bug of download timeout