diff --git a/js/jquery.mapael.js b/js/jquery.mapael.js
index <HASH>..<HASH> 100644
--- a/js/jquery.mapael.js
+++ b/js/jquery.mapael.js
@@ -313,6 +313,7 @@
             self.areas = undefined;
             self.plots = undefined;
             self.links = undefined;
+            self.customEventHandlers = undefined;
         },
 
         handleMapResizing: function () {
@@ -500,7 +501,7 @@
                 self.$container.off(fullEventName).on(fullEventName, "[data-id]", function (e) {
                     var $elem = $(this);
                     var id = $elem.attr('data-id');
-                    var type = $elem.attr('data-type');
+                    var type = $elem.attr('data-type').replace('-text', '');
 
                     if (!self.panning &&
                         self.customEventHandlers[eventName][type] !== undefined &&
Fix: custom event handler on text element (#<I>)

* Custom event handler on text element

* Ensure emptying customEventHandlers on destroy