Index: applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryLayer.java
===================================================================
--- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryLayer.java	(revision 31193)
+++ applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryLayer.java	(revision 31194)
@@ -94,4 +94,5 @@
 		MapillaryPlugin.setMenuEnabled(MapillaryPlugin.EXPORT_MENU, true);
 		download();
+		Main.map.mapView.setActiveLayer(this);
 	}
 
Index: applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryPlugin.java
===================================================================
--- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryPlugin.java	(revision 31193)
+++ applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryPlugin.java	(revision 31194)
@@ -33,5 +33,5 @@
 			"mapiconselected.png").get();
 	public static final int ICON_SIZE = 24;
-	
+
 	public static CacheAccess<String, BufferedImageCacheEntry> CACHE;
 
@@ -56,5 +56,6 @@
 		EXPORT_MENU.setEnabled(false);
 		try {
-			CACHE = JCSCacheManager.getCache("mapillary", 10, 10000, this.getPluginDir() + "/cache/");
+			CACHE = JCSCacheManager.getCache("mapillary", 10, 10000,
+					this.getPluginDir() + "/cache/");
 		} catch (IOException e) {
 			Main.error(e);
@@ -70,5 +71,5 @@
 		}
 		if (oldFrame != null && newFrame == null) { // map frame destroyed
-			MapillaryToggleDialog.deleteInstance();
+			MapillaryToggleDialog.destroyInstance();
 		}
 	}
Index: applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillarySequence.java
===================================================================
--- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillarySequence.java	(revision 31193)
+++ applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillarySequence.java	(revision 31194)
@@ -14,12 +14,11 @@
 	private final List<MapillaryImage> images;
 	private String timestamp;
+	private final String key;
 
-	public MapillarySequence() {
+	public MapillarySequence(String key) {
 		this.images = new ArrayList<>();
+		this.key = key;
 	}
 
-	public MapillarySequence(List<MapillaryImage> images) {
-		this.images = images;
-	}
 
 	/**
@@ -47,4 +46,8 @@
 	public synchronized void add(MapillaryImage image) {
 		this.images.add(image);
+	}
+	
+	public String getKey() {
+		return this.key;
 	}
 
@@ -115,3 +118,7 @@
 				- this.images.indexOf(image2));
 	}
+	
+	public boolean equals(MapillarySequence sequence) {
+		return this.getKey() == sequence.getKey();
+	}
 }
Index: applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryToggleDialog.java
===================================================================
--- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryToggleDialog.java	(revision 31193)
+++ applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryToggleDialog.java	(revision 31194)
@@ -82,5 +82,5 @@
 	}
 
-	public static void deleteInstance() {
+	public static void destroyInstance() {
 		INSTANCE = null;
 	}
Index: applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/downloads/MapillarySequenceDownloadThread.java
===================================================================
--- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/downloads/MapillarySequenceDownloadThread.java	(revision 31193)
+++ applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/downloads/MapillarySequenceDownloadThread.java	(revision 31194)
@@ -77,5 +77,8 @@
 				if (isSequenceWrong)
 					break;
-				MapillarySequence sequence = new MapillarySequence();
+				MapillarySequence sequence = new MapillarySequence(jsonobj.getString("key"));
+				for (MapillaryImage mimage : MapillaryData.getInstance().getImages())
+					if (mimage.getSequence().getKey() == sequence.getKey())
+						break;
 				int first = -1;
 				int last = -1;
