--- nodewords.module	2009-12-30 20:22:06.000000000 -0500
+++ nodewords_page_fix.module	2010-03-18 14:01:06.000000000 -0400
@@ -1300,7 +1300,7 @@ function _nodewords_detect_type_and_ids(
     $path = $page->path;
 
     if (drupal_match_path($_GET['q'], $path)) {
-      return array(NODEWORDS_TYPE_PAGE, $path);
+      return array(NODEWORDS_TYPE_PAGE, $page->pid);
     }
 
     $bool = (
@@ -1339,13 +1339,13 @@ function _nodewords_detect_type_and_ids(
  */
 function _nodewords_get_pages_data($id = NULL) {
   static $pages;
-
+  
   if (!isset($pages)) {
     $pages = array();
     $result = db_query("SELECT * FROM {nodewords_custom} ORDER BY weight ASC");
 
     while ($page = db_fetch_object($result)) {
-      $page->tags = nodewords_load_tags(NODEWORDS_TYPE_PAGE, $page->path);
+      $page->tags = nodewords_load_tags(NODEWORDS_TYPE_PAGE, $page->pid);
 
       $pages[$page->pid] = $page;
     }
