diff --git a/src/Plugin/MediaEntity/Type/Document.php b/src/Plugin/MediaEntity/Type/Document.php
index 728e08c..3e51800 100644
--- a/src/Plugin/MediaEntity/Type/Document.php
+++ b/src/Plugin/MediaEntity/Type/Document.php
@@ -32,11 +32,10 @@ class Document extends MediaTypeBase {
    */
   public function getField(MediaInterface $media, $name) {
     $source_field = $this->configuration['source_field'];
-    $property_name = $media->{$source_field}->first()->mainPropertyName();
 
     // Get the file document.
     /** @var \Drupal\file\FileInterface $file */
-    $file = $this->entityTypeManager->getStorage('file')->load($media->{$source_field}->first()->{$property_name});
+    $file = $media->{$source_field}->entity;
 
     // Return the field.
     switch ($name) {
@@ -84,7 +83,7 @@ class Document extends MediaTypeBase {
   public function thumbnail(MediaInterface $media) {
     $source_field = $this->configuration['source_field'];
     /** @var \Drupal\file\FileInterface $file */
-    $file = $this->entityTypeManager->getStorage('file')->load($media->{$source_field}->target_id);
+    $file = $media->{$source_field}->entity;
 
     if ($file) {
       $mimetype = $file->getMimeType();
@@ -114,7 +113,7 @@ class Document extends MediaTypeBase {
     $source_field = $this->configuration['source_field'];
 
     /** @var \Drupal\file\FileInterface $file */
-    if (!empty($source_field) && ($file = $this->entityTypeManager->getStorage('file')->load($media->{$source_field}->target_id))) {
+    if (!empty($source_field) && ($file = $media->{$source_field}->target_id)) {
       return $file->getFilename();
     }
 
