diff --git a/html/includes/common/worldmap.inc.php b/html/includes/common/worldmap.inc.php
index fabda7779f..8417a236c4 100644
--- a/html/includes/common/worldmap.inc.php
+++ b/html/includes/common/worldmap.inc.php
@@ -191,7 +191,8 @@ var greenMarker = L.AwesomeMarkers.icon({
$z_offset = 10000; // move marker to foreground
}
$temp_output .= "var title = '
".$map_devices['hostname']."';
-var marker = L.marker(new L.LatLng(".$map_devices['lat'].", ".$map_devices['lng']."), {title: title, icon: $icon, zIndexOffset: $z_offset});
+var tooltip = '".$map_devices['hostname']."';
+var marker = L.marker(new L.LatLng(".$map_devices['lat'].", ".$map_devices['lng']."), {title: tooltip, icon: $icon, zIndexOffset: $z_offset});
marker.bindPopup(title);
markers.addLayer(marker);\n";
}