Updated DownloadSync method
Merge pull request #817 from Juliako/FixDownloadAsync

Updated DownloadSync method