Use total instead of totalSize for progress events