Fix Split last file can not write fully error.