Fixed a crash in SettingsActivity