fix bug:
Throw exception when downloadCount == 0.