--- user2userpoints.module	2009-11-26 20:39:48.000000000 -0600
+++ user2userpoints.module2	2010-11-18 15:53:59.488608001 -0600
@@ -82,7 +83,7 @@ function user2userpoints_link($type, $no
         if (user_access(USER2USERPOINTS_PERM_SEND)) {
           $links['user2userpoints'] = array(
           'title' => t('Give !points', userpoints_translation()),
-          'href'  => 'user2userpoints/'. $node->name
+          'href'  => 'user2userpoints/'. $node->uid
           );
         }
       }
@@ -93,7 +94,7 @@ function user2userpoints_link($type, $no
 
 function user2userpoints_giveform(&$form_state,  $account = NULL, $amount = 0, $tid = 0) {
   if (is_numeric($account)) {
-    $to = user_load(array('uid' => $to_id));
+    $to = user_load(array('uid' => $account));
     $account =  $to->name;
   }
 
