A record in the invalid state becoming valid keeps the same transaction

This is fixing the issue "unable to reuse a transaction on an invalid record"

[Fixes #457]