diff --git a/src/js/choropleth.js b/src/js/choropleth.js
index <HASH>..<HASH> 100644
--- a/src/js/choropleth.js
+++ b/src/js/choropleth.js
@@ -51,8 +51,6 @@ class Choropleth extends Geomap {
             unit.select('title').text(`${text}\n\n${self.properties.column}: ${val}`);
         }
 
-
-
         // Make sure postUpdate function is run if set.
         super.update();
     }
diff --git a/src/js/geomap.js b/src/js/geomap.js
index <HASH>..<HASH> 100644
--- a/src/js/geomap.js
+++ b/src/js/geomap.js
@@ -39,7 +39,7 @@ class Geomap {
             x = x0,
             y = y0;
 
-        if (d && this._.centered !== d) {
+        if (d && d.hasOwnProperty('geometry') && this._.centered !== d) {
             let centroid = this.path.centroid(d);
             x = centroid[0];
             y = centroid[1];
@@ -48,7 +48,6 @@ class Geomap {
         } else {
             this._.centered = null;
         }
-
         this.svg.selectAll('path.unit')
            .classed('active', this._.centered && ((d) => d === this._.centered));
Fixed zooming out when no unit was clicked.