diff --git a/conditional_fields.module b/conditional_fields.module
index 58a8374..a6b0d1f 100644
--- a/conditional_fields.module
+++ b/conditional_fields.module
@@ -384,7 +384,7 @@ function conditional_fields_attach_dependency(&$form, $dependee, $dependent, $op
   // Use the #parents property of the dependee instead of #field_parents since
   // we will need access to the full structure of the widget.
   if (isset($dependee['#parents'])) {
-    $form['#conditional_fields'][$dependee['#field_name']]['parents'] = $dependee['#parents'];
+    $form['#conditional_fields'][$dependee['#field_name']]['parents'] = $dependee['#array_parents'];
     $form['#conditional_fields'][$dependee['#field_name']]['dependents'][$id] = array(
       'dependent' => $dependent['#field_name'],
       'options'   => $options,
@@ -579,7 +579,7 @@ function conditional_fields_form_after_build($form, &$form_state) {
     if (!empty($behaviors)) {
       foreach ($behaviors as $behavior) {
         $behavior($form, $form_state, $dependent, $dependent_info);
-      }      
+      }
     }
 
     unset($behaviors);
@@ -606,7 +606,7 @@ function conditional_fields_form_after_build($form, &$form_state) {
         foreach ($states[$state_key]['OR'] as $constraint_key => $constraint_value) {
           $or[] = array($constraint_key => $constraint_value);
         }
-        // '1' as a string so that we get an object (which means logic groups 
+        // '1' as a string so that we get an object (which means logic groups
         // are ANDed together).
         $states_new[$state_key]['1'] = $or;
       }
