Patch up migrate_config