diff --git a/plus1.module b/plus1.module
index 88c00a1..da1416d 100644
--- a/plus1.module
+++ b/plus1.module
@@ -142,10 +142,9 @@ function plus1_vote($nid) {
   $voted = plus1_get_votes($nid, $user->uid);
   // If the voter has not already voted.
   if (!$voted) {
-    $node_type = db_select('node','n')->fields('n', array('type'))->condition('nid', $nid)->execute()->fetchObject();
     $votes[] = array(
       'entity_id' => $nid,
-      'entity_type' => $node_type->type,
+      'entity_type' => 'node',
       'value_type' => 'points',
       'value' => 1,
     );
