fixed bug in downloader