--- old.php	2006-10-13 12:02:00.000000000 -0500
+++ pathauto_node.inc	2006-10-22 00:06:23.000000000 -0500
@@ -161,6 +161,13 @@
       }
     }
     $term = taxonomy_get_term($firsttermid);
+	
+	   if (!$term->name){
+			$terms = $node->taxonomy;
+			$tags = $terms['tags'];
+			$term->name = $tags[1];
+	}
+	
     $placeholders[t('[cat]')] = pathauto_cleanstring($term->name);
     
     $vid = $term->vid;
