diff --git a/plugins/customindex/views/default/customindex/globesplash.js b/plugins/customindex/views/default/customindex/globesplash.js
index c0e379856be8bbd377fd6e59650de7624c9fbc1b..fe12b46a4fd1a8370bc11dfdb760422cce768001 100644
--- a/plugins/customindex/views/default/customindex/globesplash.js
+++ b/plugins/customindex/views/default/customindex/globesplash.js
@@ -120,6 +120,9 @@ function letsdothisloop(delay) {
 };
 
 function openLocation(lng, lat, username, location, displayname, title, comment, linkname) {
+	if (!map1._flash.addOverlay) {
+		return;
+	}
 	if(!pinsonly)
 		clearTimeout(t);
 	var latlng = new FE.LatLng(lat,lng);
@@ -131,7 +134,7 @@ function openLocation(lng, lat, username, location, displayname, title, comment,
 	//make pins clickable
 	if(pinsonly) 
 		FE.Event.addListener(label, 'click', function() { openLocation(lng, lat, username, location, displayname, title, comment, linkname);});
-	map1.addOverlay(label);
+		map1.addOverlay(label);
 	if(!pinsonly)
 		applylabel(latlng, location, title, comment, displayname, username, linkname);
 };