fixed bugs in transaction signature