diff --git a/src/Container/src/Exception/CircularReferenceException.php b/src/Container/src/Exception/CircularReferenceException.php
index <HASH>..<HASH> 100644
--- a/src/Container/src/Exception/CircularReferenceException.php
+++ b/src/Container/src/Exception/CircularReferenceException.php
@@ -17,6 +17,8 @@ class CircularReferenceException extends ContainerException
      */
     protected function createMessage(Exception $previous = null):string
     {
+        // Adding the last dependency to the reflection path.
+        $this->referenceChain[] = $this->serviceId;
         return sprintf(
             'Circular reference detected for "%s", path: "%s".',
             $this->serviceId,
diff --git a/src/Container/src/Exception/ContainerException.php b/src/Container/src/Exception/ContainerException.php
index <HASH>..<HASH> 100644
--- a/src/Container/src/Exception/ContainerException.php
+++ b/src/Container/src/Exception/ContainerException.php
@@ -37,7 +37,7 @@ abstract class ContainerException extends RuntimeException implements ContainerE
      */
     public function __construct(string $entryId, array $referenceChain = [], Exception $previous = null)
     {
-        $referenceChain[] = $this->serviceId = $entryId;
+        $this->serviceId = $entryId;
         $this->referenceChain = $referenceChain;
         parent::__construct($this->createMessage($previous), 0, $previous);
     }
Container exception redundant reference chain duplication fixed.