diff --git a/fb_user.module b/fb_user.module
index ef320a1..b4f6008 100644
--- a/fb_user.module
+++ b/fb_user.module
@@ -186,6 +186,7 @@ function _fb_user_process_new_token($token) {
       if ($uid = $GLOBALS['user']->uid) {
         // User is logged in and connected to facebook.
         if (in_array(FB_USER_OPTION_MAP_LOGGED_IN, $map_policy)) {
+					$account = $GLOBALS['user'];
           _fb_user_set_map($account, $fbu);
           return;
         }
