Fix settings upgrading.