Fixed issue: was a bug with the checksum changing as it was been writen out