Index: /branches/eraser6/6.0/Eraser.DefaultPlugins/SettingsForm.cs
===================================================================
--- /branches/eraser6/6.0/Eraser.DefaultPlugins/SettingsForm.cs	(revision 1476)
+++ /branches/eraser6/6.0/Eraser.DefaultPlugins/SettingsForm.cs	(revision 1477)
@@ -91,12 +91,18 @@
 				//Remove the old definition of the erasure method
 				CustomErasureMethod method = editorForm.Method;
-				removeCustomMethods.Add(method.Guid);
-				customMethod.Items.Remove(item);
-				customMethods.Remove(method.Guid);
+				if (removeCustomMethods.IndexOf(method.Guid) == -1)
+					removeCustomMethods.Add(method.Guid);
 
 				//Add the new definition
-				method = editorForm.Method;
+				foreach (CustomErasureMethod addMethod in addCustomMethods)
+					if (addMethod.Guid == method.Guid)
+					{
+						addCustomMethods.Remove(addMethod);
+						break;
+					}
+
+				customMethods[method.Guid] = method;
 				addCustomMethods.Add(method);
-				AddMethod(method);
+				item.Tag = method;
 			}
 		}
