GADGETS-49 Fix nested txn issue