diff --git a/src/Tags/Responses/CollectionRenderer.php b/src/Tags/Responses/CollectionRenderer.php
index 617d1287..68353a54 100644
--- a/src/Tags/Responses/CollectionRenderer.php
+++ b/src/Tags/Responses/CollectionRenderer.php
@@ -274,7 +274,7 @@ private function getRuntimeContext()
     {
         $context = new RuntimeContext();
         $context->parameters = $this->getParameterArray();
-        $context->context = $this->context->toArray();
+        $context->context = $this->context->all();
 
         return $context;
     }
@@ -472,7 +472,7 @@ private function renderListComments($comments, $collectionName, $isFlatList)
 
         return $this->parseComments([
             $collectionName => $displayComments,
-        ], $this->context->toArray(), $collectionName);
+        ], $this->context->all(), $collectionName);
     }
 
     /**