diff --git a/context_ui/context_ui.module b/context_ui/context_ui.module
index 5fcb32c..71a97a8 100644
--- a/context_ui/context_ui.module
+++ b/context_ui/context_ui.module
@@ -241,10 +241,10 @@ function context_ui_settings($form, &$form_state) {
     if ($plugin = context_get_plugin('condition', $condition)) {
       $settings_form = $plugin->settings_form();
       if ($settings_form) {
-        $form['conditions'][$reaction] = $settings_form;
-        $form['conditions'][$reaction]['#tree'] = FALSE;
-        $form['conditions'][$reaction]['#type'] = 'fieldset';
-        $form['conditions'][$reaction]['#title'] = $info['title'];
+        $form['conditions'][$condition] = $settings_form;
+        $form['conditions'][$condition]['#tree'] = FALSE;
+        $form['conditions'][$condition]['#type'] = 'fieldset';
+        $form['conditions'][$condition]['#title'] = $info['title'];
       }
     }
   }
