Correct setting of transformation status while cleaning.
Merge pull request #1554 from fstagni/TSCleaningFixes

[v6r8] Correct setting of transformation status while cleaning.