Index: trunk/ippTools/src/dettool.c
===================================================================
--- trunk/ippTools/src/dettool.c	(revision 7470)
+++ trunk/ippTools/src/dettool.c	(revision 7471)
@@ -4,5 +4,5 @@
 
 #include <stdlib.h>
-#include <metadatadb.h>
+#include <ippdb.h>
 
 #include "pxtools.h"
@@ -103,4 +103,5 @@
 
     // grab the 'position' column's value as the new det_id
+    // the first iteration is always 0
     detRunInsert(config->dbh, det_type);
     long det_id = psDBLastInsertID(config->dbh);
@@ -1785,5 +1786,5 @@
 
 
-static bool rerunMode1(pxConfig *config)
+static bool rerunMode(pxConfig *config)
 {
     PS_ASSERT_PTR_NON_NULL(config, false);
