Fix key view loop in Preferences.