Fixed up transaction problem