diff --git a/src/EventSubscriber/ResponseSubscriber.php b/src/EventSubscriber/ResponseSubscriber.php
index 5c8d7bdf18cb32fde5d2d367f3eba837e9e3667e..178682e5c91ee251724f1f2e3834ecbf653c3614 100644
--- a/src/EventSubscriber/ResponseSubscriber.php
+++ b/src/EventSubscriber/ResponseSubscriber.php
@@ -42,7 +42,7 @@ class ResponseSubscriber implements EventSubscriberInterface {
     protected ConfigFactoryInterface $configFactory,
     protected RouteMatchInterface $currentRouteMatch,
   ) {
-    $this->config = $this->configFactory->get('jsonapi_links');
+    $this->config = $this->configFactory->get('jsonapi_links.settings');
   }
 
   /**
@@ -110,7 +110,7 @@ class ResponseSubscriber implements EventSubscriberInterface {
   /**
    * Unsets links in JSON:API responses.
    */
-  protected function removeLinks(mixed &$data, ?string $node = NULL): void {
+  protected function removeLinks(mixed &$data, string|int|null $node = NULL): void {
     if (!is_null($node)) {
       $this->path[] = $node;
     }