diff --git a/src/Form/PanelsAddBlockForm.php b/src/Form/PanelsAddBlockForm.php
index c36f884..9d9aa67 100644
--- a/src/Form/PanelsAddBlockForm.php
+++ b/src/Form/PanelsAddBlockForm.php
@@ -62,9 +62,9 @@ class PanelsAddBlockForm extends PanelsBlockConfigureFormBase {
   /**
    * {@inheritdoc}
    */
-  public function buildForm(array $form, FormStateInterface $form_state, Request $request = NULL, $tempstore_id = NULL, $machine_name = NULL, $block_id = NULL) {
+  public function buildForm(array $form, FormStateInterface $form_state, $tempstore_id = NULL, $machine_name = NULL, $block_id = NULL) {
     $form = parent::buildForm($form, $form_state, $tempstore_id, $machine_name, $block_id);
-    $form['region']['#default_value'] = $request->query->get('region');
+    $form['region']['#default_value'] = $this->getRequest()->query->get('region');
     return $form;
   }
 
