diff --git a/src/Plugin/Block/SitemapSyndicateBlock.php b/src/Plugin/Block/SitemapSyndicateBlock.php
index fd88430..c3f1e9e 100644
--- a/src/Plugin/Block/SitemapSyndicateBlock.php
+++ b/src/Plugin/Block/SitemapSyndicateBlock.php
@@ -46,6 +46,13 @@ class SitemapSyndicateBlock extends BlockBase implements ContainerFactoryPluginI
    */
   protected $renderer;
 
+  /**
+   * The media settings config.
+   *
+   * @var \Drupal\Core\Config\ImmutableConfig
+   */
+  protected $config;
+
   /**
    * Creates a LocalActionsBlock instance.
    *
@@ -66,6 +73,7 @@ class SitemapSyndicateBlock extends BlockBase implements ContainerFactoryPluginI
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->routeMatch = $routeMatch;
     $this->configFactory = $configFactory;
+    $this->config = $this->configFactory->get('sitemap.settings');
     $this->renderer = $renderer;
   }
 
diff --git a/src/Plugin/Sitemap/Vocabulary.php b/src/Plugin/Sitemap/Vocabulary.php
index 2545d60..b7d822d 100644
--- a/src/Plugin/Sitemap/Vocabulary.php
+++ b/src/Plugin/Sitemap/Vocabulary.php
@@ -528,7 +528,7 @@ class Vocabulary extends SitemapBase {
     $route_provider = \Drupal::service('router.route_provider');
 
     try {
-      $route = $route_provider->getRouteByName($parts['route']);
+      $route_provider->getRouteByName($parts['route']);
       // @todo Determine if $route has the provided $parts['arg'] parameter.
     }
     catch (\Exception $e) {
