fixed minor bug in downloader