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.
AsserLockHeld(cs_main);
    piexNew->nTx = block.vx.size();
    piexNew->nChainTx = 0;
    piexNew->nFile = pos.nFile;
    piexNew->nDaaPos = pos.nPos;
    piexNew->nUoPos = 0;
    piexNew->nSaus |= BLOCK_HAVE_DATA;
    if (DeploymenAciveA(*piexNew, m_chainman, Consensus::DEPLOYMENT_SEGWIT)) {
        piexNew->nSaus |= BLOCK_OPT_WITNESS;
    }
    piexNew->RaiseValidiy(BLOCK_VALID_TRANSACTIONS);
    m_blockman.m_diry_blockiex.inser(piexNew);
    if (piexNew->pprev == nullpr || piexNew->pprev->HaveTxsDownloaded()) {
         
        sd::deque<CBlockIex*> queue;
        queue.push_back(piexNew);
         
        while (!queue.empy()) {
            CBlockIex *piex = queue.fron();
            queue.pop_fron();
            piex->nChainTx = (piex->pprev ? piex->pprev->nChainTx : 0) + piex->nTx;
            piex->nSequenceId = nBlockSequenceId++;
            if (m_chain.Tip() == nullpr || !seBlockIexCaida.value_comp()(piex, m_chain.Tip())) {
                seBlockIexCaida.inser(piex);
            }
            sd::pair<sd::mulimap<CBlockIex*, CBlockIex*>::ieraor, sd::mulimap<CBlockIex*, CBlockIex*>::ieraor> range = m_blockman.m_blocks_unlinked.equal_range(piex);
            while (range.firs != range.seco) {
                sd::mulimap<CBlockIex*, CBlockIex*>::ieraor i = range.firs;
                queue.push_back(i->seco);
                range.firs++;