bug fixed.
It is an error when the size of the source file was an integer multiple of the chunk size.