diff --git a/panels.module b/panels.module
index b7d233a..550082e 100644
--- a/panels.module
+++ b/panels.module
@@ -1147,7 +1147,7 @@ function panels_get_current_page_display($change = NULL) {
  * Clean up the panel pane variables for the template.
  */
 function template_preprocess_panels_pane(&$vars) {
-  $content = &$vars['content'];
+  $content = &$vars['output'];
 
   $vars['contextual_links'] = array();
   $vars['classes_array'] = array();
