diff --git a/modules/ctools/modules/ctools_views/src/Plugin/Display/Block.php b/modules/ctools/modules/ctools_views/src/Plugin/Display/Block.php
index 9b72f34..4a8c29a 100644
--- a/modules/ctools/modules/ctools_views/src/Plugin/Display/Block.php
+++ b/modules/ctools/modules/ctools_views/src/Plugin/Display/Block.php
@@ -47,20 +47,27 @@ public function optionsSummary(&$categories, &$options) {
    */
   public function buildOptionsForm(&$form, FormStateInterface $form_state) {
     parent::buildOptionsForm($form, $form_state);
-    $options = $form['allow']['#options'];
-    $options['offset'] = $this->t('Pager offset');
-    $options['pager'] = $this->t('Pager type');
-    $options['hide_fields'] = $this->t('Hide fields');
-    $options['sort_fields'] = $this->t('Reorder fields');
-    $options['disable_filters'] = $this->t('Disable filters');
-    $options['configure_sorts'] = $this->t('Configure sorts');
-    $form['allow']['#options'] = $options;
-    // Update the items_per_page if set.
-    $defaults = array_filter($form['allow']['#default_value']);
-    if (isset($defaults['items_per_page'])) {
-      $defaults['items_per_page'] = 'items_per_page';
+    switch ($form_state->get('section')) {
+      case 'allow':
+        $options = $form['allow']['#options'];
+        $options['offset'] = $this->t('Pager offset');
+        $options['pager'] = $this->t('Pager type');
+        $options['hide_fields'] = $this->t('Hide fields');
+        $options['sort_fields'] = $this->t('Reorder fields');
+        $options['disable_filters'] = $this->t('Disable filters');
+        $options['configure_sorts'] = $this->t('Configure sorts');
+        $form['allow']['#options'] = $options;
+        // Update the items_per_page if set.
+        $defaults = array_filter($form['allow']['#default_value']);
+        if (isset($defaults['items_per_page'])) {
+          $defaults['items_per_page'] = 'items_per_page';
+        }
+        
+        break;
+    }
+    if (isset($defaults)) {
+      $form['allow']['#default_value'] = $defaults;
     }
-    $form['allow']['#default_value'] = $defaults;
   }
 
   /**
