diff --git a/views_content/plugins/content_types/views_panes.inc b/views_content/plugins/content_types/views_panes.inc
index 522b9f2..d8aad54 100644
--- a/views_content/plugins/content_types/views_panes.inc
+++ b/views_content/plugins/content_types/views_panes.inc
@@ -152,7 +152,8 @@ function views_content_views_panes_content_type_render($subtype, $conf, $panel_a
   foreach ($view->display_handler->get_argument_input() as $id => $argument) {
     switch ($argument['type']) {
       case 'context':
-        $key = array_shift($context_keys);
+        // Get the context from the configuration.
+        $key = $conf['context'][0];
         if (isset($contexts[$key])) {
           if (strpos($argument['context'], '.')) {
             list($context, $converter) = explode('.', $argument['context'], 2);
