Fixes a bug : resetState() throws exception with executed Transaction
Merge branch 'fix-executed-transaction-with-resetstate'