diff --git a/user_alert.module b/user_alert.module
index 9d6ac4b..07fc0fb 100644
--- a/user_alert.module
+++ b/user_alert.module
@@ -7,8 +7,8 @@
  */
 
 function user_alert_init() {	
-	if (!isset($_COOKIE['UUID']) || !uuid_is_well_formed($_COOKIE['UUID'])) {
-		$uuid = uuid_uuid();
+	if (!isset($_COOKIE['UUID']) || !uuid_is_well_valid($_COOKIE['UUID'])) {
+		$uuid = uuid_generate();
 		global $cookie_domain;
 		$domain = $_SERVER['SERVER_NAME'];
 		
@@ -224,4 +224,4 @@ function user_alert_cron() {
   foreach ($result as $record) {
     db_delete('node')->condition('nid', $record->nid)->execute();
   }
-} 
\ No newline at end of file
+} 
