add updateTxError in some methods. revert last commit.