fixes the migration