Fixed problem with Flush incorrectly changing state variables before uploading the current part, which was causing the commited offset to outrun the archive offset