Fix bug in downloader.