fixed a bug in downloader