Fixed #25, should not modify transaction after sign