Fix crash involving SettingsViewController