Fixed the broken nested transactions
Fixed the broken nested transactions