diff --git a/views_boxes.module b/views_boxes.module
index c7f113b..58fb4dd 100644
--- a/views_boxes.module
+++ b/views_boxes.module
@@ -29,6 +29,9 @@
 
 function views_boxes_view_id_callback($form, $form_state) {
   $key = $form_state['clicked_button']['#key'];
+  
+  // Use either $form['options'] or $form['settings']['options'] depending on
+  // whether the form submission comes from the box in-place editor or normal block editor
+  $settings = (isset($form['options'])) ? $form['options']['settings'] : $form['settings']['options']['settings'];
   $return['settings'] = $form['options']['settings']["{$key}_group"];
   return $return;
 }
