Small fix for resume_download