Fix when file download is cancelled