fixed bug in transaction class