Fixed recursive transaction bug.