Fixed a bug while downloading