diff --git a/dhtml_menu.js b/dhtml_menu.js
index fc948ed..889ada3 100644
--- a/dhtml_menu.js
+++ b/dhtml_menu.js
@@ -176,9 +176,11 @@ Drupal.behaviors.dhtmlMenu = {
     // When using LTR, all icons can be shifted as one, as the text width is not relevant.
     if (settings.nav == 'bullet' && !rtl) {
       // Shift overlay to the left by the width of the icon and the distance between icon and text.
-      var shift = '-' + (Math.ceil(($('.menu li').css('margin-left').replace('px', ''))) + 16) + 'px';
-      // Shift the overlay using a negative left-hand offset, and the text using a negative right-hand margin.
-      $('.dhtml-menu-icon').css('left', shift).css('margin-right', shift);
+      if ($('.menu li').hasClass('margin-left')) {
+        var shift = '-' + (Math.ceil(($('.menu li').css('margin-left').replace('px', ''))) + 16) + 'px';
+        // Shift the overlay using a negative left-hand offset, and the text using a negative right-hand margin.
+        $('.dhtml-menu-icon').css('left', shift).css('margin-right', shift);
+      }
     }
   }
 }
