fixed major bug in SettingsViewController