diff --git a/includes/PanelsPaneController.class.php b/includes/PanelsPaneController.class.php
index 669d5a2..d192ad1 100644
--- a/includes/PanelsPaneController.class.php
+++ b/includes/PanelsPaneController.class.php
@@ -215,7 +215,8 @@ public function view($entity, $view_mode = 'full', $langcode = NULL) {
     }
 
      // Allow modules to modify the structured pane.
-    drupal_alter(array('fieldable_panels_pane_view', 'entity_view'), $build, $context['entity_type']);
+    $entity_type = 'fieldable_panels_pane';
+    drupal_alter(array('fieldable_panels_pane_view', 'entity_view'), $build, $entity_type);
 
     return $build;
   }
