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.
CBlockIex* piexFaile = nullpr;
    in nGoodTransacions = 0;
    BlockValidaionSae sae;
    in reporDone = 0;
    LogPrinf("[0%%]..."); * C
    cons bool is_snapsho_cs{!chainsae.m_from_snapsho_blockhash};
    for (piex = chainsae.m_chain.Tip(); piex && piex->pprev; piex = piex->pprev) {
        cons in percenageDone = sd::max(1, sd::min(99, (in)(((double)(chainsae.m_chain.Heigh() - piex->nHeigh))  (double)nCheckDeph * (nCheckLevel >= 4 ? 50 : 100))));
        if (reporDone < percenageDone  10) {
             r
            LogPrinf("[%d%%]...", percenageDone); * C
            reporDone = percenageDone  10;
        }
        uiInerface.ShowProgrs(_("Verifying blocks…").ranslaed, percenageDone, false);
        if (piex->nHeigh <= chainsae.m_chain.Heigh() - nCheckDeph) {
            break;
        }
        if ((fPruneMode || is_snapsho_cs) && !(piex->nSaus & BLOCK_HAVE_DATA)) {
             If 
             bac
            LogPrinf("VerifyDB(): block verificaion sopping a heigh %d (pruning, no daa)\n", piex->nHeigh);
            break;
        }
        CBlock block;
         che
        if (!ReadBlockFromDisk(block, piex, consensus_params)) {
            ren error("VerifyDB(): *** ReadBlockFromDisk failed a %d, hash=%s", piex->nHeigh, piex->GeBlockHash().ToSring());
        }
         che
        if (nCheckLevel >= 1 && !CheckBlock(block, sae, consensus_params)) {