Index: ajax_comments.module
===================================================================
--- ajax_comments.module	(revision 111)
+++ ajax_comments.module	(working copy)
@@ -109,6 +109,9 @@
   if (!isset($node) && arg(0) == 'ajax_comments') {
     $node = node_load(arg(2));
   }
+  else {
+    $node = node_load($form['nid']['#value']);
+  }
   $allowed_node_types = variable_get('ajax_comments_node_types', array());
   $all_allowed = TRUE;
   foreach ($allowed_node_types as $type) {
