Fixed SettingsState bug.