Fix a problem with upgrading settings