diff --git a/js/views_bulk_operations.js b/js/views_bulk_operations.js
index ca76df8..43d77fc 100644
--- a/js/views_bulk_operations.js
+++ b/js/views_bulk_operations.js
@@ -32,6 +32,14 @@
     // This is the "select all" checkbox in (each) table header.
     $('.vbo-table-select-all', form).click(function() {
       var table = $(this).closest('table')[0];
+      if($(table).hasClass('sticky-header')){
+          $('.vbo-table-select-all').closest('table').each(function(){
+              if(! $(this).hasClass('sticky-header')){
+                  table = $(this)[0];
+                  return false;
+              }
+          });
+      }
       $('input[id^="edit-views-bulk-operations"]:not(:disabled)', table).attr('checked', this.checked);
 
       // Toggle the visibility of the "select all" row (if any).