fix bug that AddToChain cannot add identity