diff --git a/app/templates/home.html b/app/templates/home.html
index d8fcfac..6009a6b 100755
--- a/app/templates/home.html
+++ b/app/templates/home.html
@@ -276,8 +276,7 @@
map.fitBounds(group.getBounds().pad(0.4));
} else if (view == "closest") {
var closest = L.GeometryUtil.closestLayer(map, mosquitoArray, myPositionCircle.getLatLng());
- document.getElementById("distance_close").innerHTML = "closest mosquito: " + distance(closest.layer.getLatLng()
- .lng, closest.layer.getLatLng().lat, myPositionCircle.getLatLng().lng, myPositionCircle.getLatLng().lat)
+ document.getElementById("distance_close").innerHTML = "closest mosquito: " + distance(closest.layer.getLatLng().lng, closest.layer.getLatLng().lat, myPositionCircle.getLatLng().lng, myPositionCircle.getLatLng().lat)
var group = new L.featureGroup([closest.layer, myPositionCircle]);
map.fitBounds(group.getBounds().pad(0.4));