Fix calculating checksum was mistaken.