Fixed checksum comparison