Fix CheckBlockchainConsistency()