transaction bug correction