Fixed bug in Transaction