--- nodewords.module	2010-05-29 19:44:53.000000000 -0600
+++ nodewords_new.module	2010-09-11 16:26:08.000000000 -0600
@@ -165,7 +165,8 @@ function nodewords_preprocess_page(&$var
     $output = _nodewords_output_tags($output_tags);
     drupal_alter('nodewords_tags_output', $output, $options);
 
-    $variables['head'] = $output . "\n" . $variables['head'];
+    drupal_set_html_head($output);
+    $variables['head'] = drupal_get_html_head();
   }
 }
 
