--- src/sites/all/modules/contributions/nodewords/nodewords.module.orignal	2010-06-29 18:03:31.000000000 +0300
+++ src/sites/all/modules/contributions/nodewords/nodewords.module	2010-06-29 18:03:40.000000000 +0300
@@ -1307,7 +1307,9 @@ function _nodewords_detect_type_and_ids(
     $path = $page->path;
 
     if (drupal_match_path($_GET['q'], $path)) {
-      return array(NODEWORDS_TYPE_PAGE, $path);
+      $result = db_query("SELECT pid FROM {nodewords_custom} where path LIKE '$path'");
+      $page = db_fetch_object($result);
+      return array(NODEWORDS_TYPE_PAGE, array($page->pid));
     }
 
     $bool = (
