Fix checksum check