fixed upload after 4 files are uploaded, fixed retry on error