Fixed crash onPause SettingsActivity