Some fixes to the QSD reversion migration.