Fixed a checksum problem with D neq 3