Fix SettingsState key value bug