--- epublish.module	2006-05-30 03:03:08.000000000 -0500
+++ epublish.module.fixed	2006-05-30 03:02:20.000000000 -0500
@@ -1208,7 +1208,7 @@
 		db_query("INSERT INTO {epublish_section} (sid, title, vid, node_types, timeframe, layout_list, layout_page) VALUES ('%d', '%s', '%d', '%s', '%s', '%s', '%s')", $form_values['sid'], $form_values['title'], $form_values['vid'], implode(',', $form_values['node_types']), $form_values['timeframe'], $form_values['layout_list'], $form_values['layout_page']);
 		// Every section has a "miscellaneous" topic that can't be deleted, with a weight of 99 (so it always appears at the bottom of the section)
 		$misc_topic = array('sid' => $form_values['sid'], 'tid' => 0, 'count' => 0, 'weight' => 99, 'node_types' => array());
-		epublish_save_topic($misc_topic);
+		epublish_form_topic_submit($form_id, $misc_topic);
 		if ($form_id) {
 			drupal_set_message(t('The "%title" section has been added.', array('%title' => theme('placeholder', $form_values['title']))));
 		}
@@ -2617,4 +2617,4 @@
 	return 'tn.tid=' . implode(' OR tn.tid =', $terms);
 }
 
-?>
\ No newline at end of file
+?>
