diff --git nodewords.module nodewords.module
index 7cbbb7e..813373b 100644
--- nodewords.module
+++ nodewords.module
@@ -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 = (
