Fix settings upgrade.