Fix bug: Wrong progress bar length when uploading small files after uploading big files.