fix retry bug

1. upload a file A
2. A failed
  2.1 A retry, now A.finished is true, so the file.progress() is 1 then will not try again