Fixed checksum calculation to ignore checksum field