diff --git a/templates/index.html b/templates/index.html
index 3a9ccc3..4f4cb0a 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -121,7 +121,7 @@
let targetLatLng = map.containerPointToLatLng(targetCenterPoint);
// Fly to the adjusted center so the marker appears 25% lower from the center
- map.flyTo(latlng, 18, { duration: 0.7 });
+ map.flyTo(targetCenterPoint, 18, { duration: 0.7 });
map.once('moveend', function() {
user_marker.setLatLng(latlng).bindPopup('').openPopup();
});