diff --git a/src/Plugin/WebformElement/WebformComputedTwig.php b/src/Plugin/WebformElement/WebformComputedTwig.php
index 1b720d0e..42a7df80 100644
--- a/src/Plugin/WebformElement/WebformComputedTwig.php
+++ b/src/Plugin/WebformElement/WebformComputedTwig.php
@@ -70,6 +70,7 @@ class WebformComputedTwig extends WebformComputedBase {
       'description' => $output,
     ];
     $form['computed']['value']['#mode'] = 'twig';
+
     // Set #access so that help is always visible.
     WebformElementHelper::setPropertyRecursive($form['computed']['help'], '#access', TRUE);
 
diff --git a/src/Utility/WebformElementHelper.php b/src/Utility/WebformElementHelper.php
index ad046691..69094855 100644
--- a/src/Utility/WebformElementHelper.php
+++ b/src/Utility/WebformElementHelper.php
@@ -121,7 +121,7 @@ class WebformElementHelper {
   }
 
   /**
-   * Set a property on all elements.
+   * Set a property on all elements and sub-elements.
    *
    * @param array $element
    *   A render element.
@@ -133,12 +133,11 @@ class WebformElementHelper {
    * @return array
    *   A render element with with a property set on all elements.
    */
-  public static function setPropertyRecursive(array $element, $property_key, $property_value) {
+  public static function setPropertyRecursive(array &$element, $property_key, $property_value) {
     $element[$property_key] = $property_value;
     foreach (Element::children($element) as $key) {
       self::setPropertyRecursive($element[$key], $property_key, $property_value);
     }
-    return $element;
   }
 
   /**
