fixed minor bug in Transaction