diff --git a/typo3/sysext/frontend/Classes/ContentObject/FilesContentObject.php b/typo3/sysext/frontend/Classes/ContentObject/FilesContentObject.php
index 102d2e33f7c0742cecbc0f8b27f86fdd1f35eab9..7ac2136eb176be7f8d7e25bd264aea6427b65f62 100644
--- a/typo3/sysext/frontend/Classes/ContentObject/FilesContentObject.php
+++ b/typo3/sysext/frontend/Classes/ContentObject/FilesContentObject.php
@@ -35,6 +35,8 @@ class FilesContentObject extends AbstractContentObject
         if (!empty($conf['if.']) && !$this->cObj->checkIf($conf['if.'])) {
             return '';
         }
+        // Store the original "currentFile" within a variable so it can be re-applied later-on
+        $originalFileInContentObject = $this->cObj->getCurrentFile();
 
         $fileCollector = $this->findAndSortFiles($conf);
         $fileObjects = $fileCollector->getFiles();
@@ -78,6 +80,10 @@ class FilesContentObject extends AbstractContentObject
             $fileObjectCounter++;
         }
 
+        // Reset current file within cObj to the original file after rendering output of FILES
+        // so e.g. stdWrap is not working on the last current file applied, thus avoiding side-effects
+        $this->cObj->setCurrentFile($originalFileInContentObject);
+
         return $this->cObj->stdWrap($content, $conf['stdWrap.']);
     }