diff --git a/src/Controller/EntityResource.php b/src/Controller/EntityResource.php
index dfd7fee..2345bcd 100644
--- a/src/Controller/EntityResource.php
+++ b/src/Controller/EntityResource.php
@@ -313,11 +313,10 @@ class EntityResource {
     $cacheable_metadata = new CacheableMetadata();
     // Add the cacheable metadata from the host entity.
     $cacheable_metadata->addCacheableDependency($entity);
-    foreach ($field_list as $field_item) {
-      /* @var \Drupal\Core\Entity\EntityInterface $entity_item */
-      $entity_item = $field_item->entity;
-      $collection_data[$entity_item->id()] = static::getEntityAndAccess($entity_item);
-      $cacheable_metadata->addCacheableDependency($entity_item);
+    /* @var \Drupal\Core\Entity\EntityInterface $entity_item */
+    foreach ($field_list->referencedEntities() as $entity_item) {
+       $collection_data[$entity_item->id()] = static::getEntityAndAccess($entity_item);
+       $cacheable_metadata->addCacheableDependency($entity_item);
     }
     $entity_collection = new EntityCollection(array_column($collection_data, 'entity'));
     $response = $this->buildWrappedResponse($entity_collection);
