diff --git a/sites/all/modules/terms_of_use/terms_of_use.module b/sites/all/modules/terms_of_use/terms_of_use.module
index 2d4f29c..e9f0568 100644
--- a/sites/all/modules/terms_of_use/terms_of_use.module
+++ b/sites/all/modules/terms_of_use/terms_of_use.module
@@ -80,7 +80,7 @@ function terms_of_use_form_user_register_form_alter(&$form, $form_state) {
     if ($node->nid) {
       // Show terms on the registration for or just a links
       if (strpos($checkbox_label, '@link') !== FALSE) {
-        $checkbox_label = str_replace('@link', l($node->title, 'node/' . $node->nid), $checkbox_label);
+        $related_node = $node;
         $show_terms = FALSE;
       }
       // Adding the nodes body by theme_terms_of_use() to the fieldset if desired.
@@ -109,7 +109,7 @@ function terms_of_use_form_user_register_form_alter(&$form, $form_state) {
   // Adding the checkbox to the fieldset.
   $form['terms_of_use']['terms_of_use'] = array(
     '#type' => 'checkbox',
-    '#title' => t($checkbox_label),
+    '#title' => str_replace('@link', l($related_node->title, 'node/' . $related_node->nid), t($checkbox_label)),
     '#required' => TRUE,
   );
 
@@ -144,4 +144,4 @@ function theme_terms_of_use($variables) {
   $output .= '</div>';
 
   return $output;
-}
\ No newline at end of file
+}
