diff --git a/views/webform_handler_field_submission_count.inc b/views/webform_handler_field_submission_count.inc
index c70afdd..88f04cf 100644
--- a/views/webform_handler_field_submission_count.inc
+++ b/views/webform_handler_field_submission_count.inc
@@ -15,6 +15,7 @@ class webform_handler_field_submission_count extends views_handler_field {
 
     if ($this->count_type == 'node') {
       $this->additional_fields['nid'] = 'nid';
+      $this->additional_fields['type'] = 'type';
     }
     elseif ($this->count_type == 'users') {
       $this->additional_fields['uid'] = 'uid';
@@ -36,7 +37,7 @@ class webform_handler_field_submission_count extends views_handler_field {
     global $user;
 
     $output = NULL;
-    if ($this->count_type == 'node' && in_array($node->type, webform_variable_get('webform_node_types'))) {
+    if ($this->count_type == 'node' && in_array($values->{$this->aliases['type']}, webform_variable_get('webform_node_types'))) {
       module_load_include('inc', 'webform', 'includes/webform.submissions');
       $node = node_load($values->{$this->aliases['nid']});
       if (webform_results_access($node, $user)) {
