diff --git a/message_notify_example/message_notify_example.module b/message_notify_example/message_notify_example.module
index 6218b58..313f38c 100644
--- a/message_notify_example/message_notify_example.module
+++ b/message_notify_example/message_notify_example.module
@@ -21,7 +21,7 @@ function message_notify_example_comment_insert($comment) {
   // Create a new message, assigned to the comment author, and add a
   // reference to the comment, so we can later use tokens related to that
   // comment.
-  $message = message_create('comment_insert', array('uid' => $comment->uid));
+  $message = message_create('comment_insert', array('uid' => $node->uid));
   $wrapper = entity_metadata_wrapper('message', $message);
   $wrapper->field_comment_ref->set($comment);
 
