diff --git a/src/de/mrapp/android/preference/activity/PreferenceFragment.java b/src/de/mrapp/android/preference/activity/PreferenceFragment.java
index <HASH>..<HASH> 100644
--- a/src/de/mrapp/android/preference/activity/PreferenceFragment.java
+++ b/src/de/mrapp/android/preference/activity/PreferenceFragment.java
@@ -206,13 +206,12 @@ public abstract class PreferenceFragment extends
 			} else if (preference.getKey() != null
 					&& !preference.getKey().isEmpty()
 					&& !isBlackListed(preference.getKey())
-					&& (!areDisabledPreferencesRestored() || preference
+					&& (areDisabledPreferencesRestored() || preference
 							.isEnabled())) {
 				sharedPreferences.edit().remove(preference.getKey()).commit();
+				preferenceGroup.removePreference(preference);
+				preferenceGroup.addPreference(preference);
 			}
-
-			preferenceGroup.removePreference(preference);
-			preferenceGroup.addPreference(preference);
 		}
 	}
Bugfix #1: The default values of disabled preferences are not restored anymore, when the restoreDisabledPreferences-attribute is set to false.