diff --git a/plugins/openlayers_behaviors/openlayers_behavior_popup.js b/plugins/openlayers_behaviors/openlayers_behavior_popup.js
index 2645da8..ab87490 100644
--- a/plugins/openlayers_behaviors/openlayers_behavior_popup.js
+++ b/plugins/openlayers_behaviors/openlayers_behavior_popup.js
@@ -26,6 +26,9 @@ Drupal.theme.prototype.openlayersPopup = function(feature) {
   return output;
 };
 
+// Make sure the namespace exists
+Drupal.openlayers.popup = Drupal.openlayers.popup || {};
+
 /**
  * OpenLayers Popup Behavior
  */
