Fix AccountTx end condition