fixed bug in CommandTransaction