diff --git includes/rules.plugins.inc includes/rules.plugins.inc
index 044c155..77af0c8 100644
--- includes/rules.plugins.inc
+++ includes/rules.plugins.inc
@@ -570,6 +570,9 @@ class RulesLoop extends RulesActionContainer {
       $state2->addVariable($item_var_name, $list[$key], $item_var_info);
       parent::evaluate($state2);
     }
+    // Register the custom variables in the parent state
+    unset($state2->variables[$item_var_name]);
+    $state->variables = array_merge($state->variables, $state2->variables);
   }
 
   protected function stateVariables($element = NULL) {
