fix decreaseChainMessageCount bug