#165: Fixed nested transaction bug.