Index: trunk/src/org/openstreetmap/josm/data/osm/visitor/NameVisitor.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/visitor/NameVisitor.java	(revision 353)
+++ trunk/src/org/openstreetmap/josm/data/osm/visitor/NameVisitor.java	(revision 354)
@@ -62,5 +62,6 @@
 		if (name == null) {
 			String what = (w.get("highway") != null) ? "highway " : (w.get("railway") != null) ? "railway " : (w.get("waterway") != null) ? "waterway " : "";
-			name = what + trn("{0} node", "{0} nodes", w.nodes.size(), w.nodes.size());
+			int nodesNo = new HashSet(w.nodes).size();
+			name = what + trn("{0} node", "{0} nodes", nodesNo, nodesNo);
 		}
 		addId(w);
