diff --git a/src/app/history/controllers/HistoryController.php b/src/app/history/controllers/HistoryController.php
index 05f2c5af860bca4a1d672d192f346e0afd6efe38..d172dab78882ce95ef35f115bf938e5dc7eaa2fb 100644
--- a/src/app/history/controllers/HistoryController.php
+++ b/src/app/history/controllers/HistoryController.php
@@ -211,7 +211,7 @@ class HistoryController
 
                 foreach ($filteredHistoryIds as $key => $objectId) {
                     if (!empty($key)) {
-                        $history[$key]['label'] = $objects[$objectId];
+                        $history[$key]['label'] = $objects[$objectId] ?? null;
                     }
                 }
             }
@@ -591,7 +591,6 @@ class HistoryController
             }
 
             $zip->close();
-
             $fileContent = file_get_contents($zipFilename);
             unlink($zipFilename);
             return ['fileContent' => $fileContent];