fixed bug in transation function output: unitialized flag in transaction output causing blocking