Logical error in checking the preferences.