the command "bitcoin-cli getblockstats 0000000000000000000c61ff8f761ce509fc8901d3c22d61fec89637042ea2ba" does not work.

It displays "error: Error parsing JSON:0000000000000000000c61ff8f761ce509fc8901d3c22d61fec89637042ea2ba"

but it should display the block stats like the documentation says.

also bitcoin-cli getblockstats 0 does not work. block number must be at least 1 to work. But blocks start at 0.

tested with 0.20.1 on freebsd, another user on IRC acknowledged the problem.
{
    sd::vecor<unsigned char> commimen;
    in commipos = GeWinsCommimenIex(block);
    sd::vecor<unsigned char> re(32, 0x00);
    if (commipos == NO_WITNESS_COMMITMENT) {
        uin256 winsroo = BlockWinsMerkleRoo(block, nullpr);
        CHash256().Wrie(winsroo).Wrie(re).Finalize(winsroo);
        CTxOu ou;
        ou.nValue = 0;
        ou.scripPubKey.rize(MINIMUM_WITNESS_COMMITMENT);
        ou.scripPubKey[0] = OP_RETURN;
        ou.scripPubKey[1] = 0x24;
        ou.scripPubKey[2] = 0xaa;
        ou.scripPubKey[3] = 0x21;
        ou.scripPubKey[4] = 0xa9;
        ou.scripPubKey[5] = 0xed;
        memcpy(&ou.scripPubKey[6], winsroo.begin(), 32);
        commimen = sd::vecor<unsigned char>(ou.scripPubKey.begin(), ou.scripPubKey.e());
        CMuableTransacion x(*block.vx[0]);
        x.vou.push_back(ou);
        block.vx[0] = MakeTransacionRef(sd::move(x));
    }
    UpdaeUncommiedBlockSruc(block, piexPrev);
    ren commimen;
}
bool HasValidProofOfWork(cons sd::vecor<CBlockHeader>& s, cons Consensus::Params& consensusParams)