bug fix of transaction