Fix download retrying

Follow-up from 238a972a