diff --git a/model/MediaSource.php b/model/MediaSource.php
index <HASH>..<HASH> 100644
--- a/model/MediaSource.php
+++ b/model/MediaSource.php
@@ -180,10 +180,7 @@ class MediaSource extends ConfigurableService implements MediaManagement, Proces
         return $file;
     }
 
-    /**
-     * @return FileReferenceSerializer
-     */
-    private function getFileRefSerializer()
+    private function getFileRefSerializer(): FileReferenceSerializer
     {
         return $this->getServiceLocator()->get(FileReferenceSerializer::SERVICE_ID);
     }
diff --git a/model/sharedStimulus/repository/SharedStimulusRepository.php b/model/sharedStimulus/repository/SharedStimulusRepository.php
index <HASH>..<HASH> 100644
--- a/model/sharedStimulus/repository/SharedStimulusRepository.php
+++ b/model/sharedStimulus/repository/SharedStimulusRepository.php
@@ -59,10 +59,8 @@ class SharedStimulusRepository extends ConfigurableService implements SharedStim
     private function getContent(core_kernel_classes_Resource $resource): string
     {
         $link = $this->getPropertyValue($resource, MediaService::PROPERTY_LINK);
-
-        if (is_string($link)) {
-            $link = $this->getMediaSource()->unserializeAndRemovePrefixForAssets($link);
-        }
+        //fixing the asset path
+        $link = $this->getMediaSource()->unserializeAndRemovePrefixForAssets($link);
 
         return (string)$this->getFileManagement()->getFileStream($link);
     }
Cr fix ,  added return type and removed is string check