diff --git a/js/foundationExtendEBI.js b/js/foundationExtendEBI.js
index 73f5ea4bfb0c7f0e126022b13b208ca59fe5b861..422f8d53829fa321314ce35b720caf86603e7076 100644
--- a/js/foundationExtendEBI.js
+++ b/js/foundationExtendEBI.js
@@ -218,7 +218,7 @@ if (jQuery('body').hasClass('google-analytics-loaded')) {
 
     // Create a dynamic height for the menu bar when stuck
     // -----------
-    var desiredStuckMenuHeight = $('#masthead .masthead').outerHeight();
+    var desiredStuckMenuHeight = $('#masthead .masthead-inner').outerHeight();
     $("<style id='dynamic-stuck-height' type='text/css'> div#masthead.sticky.is-stuck{ margin-top: -" + desiredStuckMenuHeight + "px !important;} </style>").appendTo("body");
 
     // Clone the local menu into a mobile-only menu