diff --git a/js/views_bulk_operations.js b/js/views_bulk_operations.js
index 35727e9..62218be 100644
--- a/js/views_bulk_operations.js
+++ b/js/views_bulk_operations.js
@@ -39,7 +39,7 @@
     $('.vbo-table-select-all', form).show();
     // This is the "select all" checkbox in (each) table header.
     $('input.vbo-table-select-all', form).click(function() {
-      var table = $(this).closest('table')[0];
+      var table = $(this).closest('table:not(.sticky-header)')[0];
       $('.vbo-select:not(:disabled)', table).prop('checked', this.checked);
       Drupal.vbo.toggleButtonsState(form);
 
