fix error when checksum is disabled