--- sites/all/modules/tableofcontents/tableofcontents.pages.inc	Sat Mar 27 04:20:20 2010
+++ sites/all/modules/tableofcontents/tableofcontents.pages.inc	Sat Mar 27 04:25:05 2010
@@ -387,19 +387,19 @@
 function _tableofcontents_get_options(&$toc, $options) {
   static $id_counter = 0;
 
-  // Any options?
-  if (!$options) {
-    return;
-  }
-  // Make sure we don't miss the last parameter even if not properly ended
-  $options .= ';';
-
   // A default identifier for this table of contents
   $toc->id = 'toc';
   if ($id_counter) {
     $toc->id .= $id_counter;
   }
   ++$id_counter;
+  
+  // Any options?
+  if (!$options) {
+    return;
+  }
+  // Make sure we don't miss the last parameter even if not properly ended
+  $options .= ';';
 
   // We use a replace just so we get the callback
   preg_replace_callback(
