fix MakeSHAChainLen*