fix bugs in file_downloader