diff --git a/teka.theme b/teka.theme
index 9d87124..7e68156 100755
--- a/teka.theme
+++ b/teka.theme
@@ -31,6 +31,6 @@ function teka_page_attachments_alter(&$page) {
  */
 function teka_preprocess_node(&$vars) {
   // Add a custom template suggestion using Node type and View mode.
-  $suggestion = 'node__' . $vars['type'] . '__' . $vars['view_mode'];
+  $suggestion = 'node__' . $vars['node']->getType() . '__' . $vars['view_mode'];
   $vars['theme_hook_suggestions'][] = $suggestion;
 }
