fix BNF checksum calculation