download: fix chunked downloader