a few fixes found using the admin tool
a few fixes found using the admin tool

kkleidal/chain-api,ResEnv/chain-api,kkleidal/chain-api,ResEnv/chain-api,kkleidal/chain-api,kkleidal/chain-api,ResEnv/chain-api,ResEnv/chain-api