Fixed bug that caused exceptions when attempting to download.