diff --git a/misc/tableheader.js b/misc/tableheader.js
index 9d05e23..eb69e7f 100644
--- a/misc/tableheader.js
+++ b/misc/tableheader.js
@@ -69,9 +69,8 @@ Drupal.behaviors.tableHeader = function (context) {
     // Get the height of the header table and scroll up that amount.
     if (prevAnchor != location.hash) {
       if (location.hash != '') {
-        var offset = $('td' + location.hash).offset();
-        if (offset) {
-          var top = offset.top;
+        var top = $('td' + location.hash).offset().top;
+        if (top) {
           var scrollLocation = top - $(e).height();
           $('body, html').scrollTop(scrollLocation);
         }
