Bugfix - ChunkedFile - sometimes, the last chunk did not contain all the remaining data.