fix bug for FileDownloader