fix checksum for bigendian