fixed checksum bug