Index: trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java	(revision 7200)
+++ trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java	(revision 7203)
@@ -11,4 +11,5 @@
 import java.util.List;
 import java.util.Objects;
+import java.util.TreeSet;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
@@ -485,5 +486,5 @@
         int i = countryCode.compareTo(in.countryCode);
         if (i == 0) {
-            i = name.compareTo(in.name);
+            i = name.toLowerCase().compareTo(in.name.toLowerCase());
         }
         if (i == 0) {
@@ -695,4 +696,13 @@
         this.id = id;
     }
+    
+    public void clearId() {
+        if (this.id != null) {
+            Collection<String> newAddedIds = new TreeSet<>(Main.pref.getCollection("imagery.layers.addedIds"));
+            newAddedIds.add(this.id);
+            Main.pref.putCollection("imagery.layers.addedIds", newAddedIds);
+        }
+        this.id = null;
+    }
 
     /**
Index: trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java	(revision 7200)
+++ trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java	(revision 7203)
@@ -178,5 +178,5 @@
             }
         }
-        Main.pref.putCollection("imagery.layers.migration.addedIds", newAddedIds);
+        Main.pref.putCollection("imagery.layers.addedIds", newAddedIds);
         
         // automatically update user entries with same id as a default entry
Index: trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java	(revision 7200)
+++ trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java	(revision 7203)
@@ -651,7 +651,9 @@
                 case 0:
                     info.setName((String) o);
+                    info.clearId();
                     break;
                 case 1:
                     info.setExtendedUrl((String)o);
+                    info.clearId();
                     break;
                 default:
