Fix nested transaction