transaction bug fixed