Some code touch ups when saving the settings file.