Fixes #4309: Add correct xml previous migration
Merge pull request #408 from VinceMacBuche/bug/4309/use_correct_previous

Fixes #4309: Add correct xml previous migration