Index: trunk/ippTools/src/dettool.c
===================================================================
--- trunk/ippTools/src/dettool.c	(revision 9327)
+++ trunk/ippTools/src/dettool.c	(revision 9328)
@@ -3782,5 +3782,7 @@
         "       AND detResidExp.exp_tag IS NULL"
         "   GROUP BY"
-        "       detInputExp.exp_tag"
+        "       detInputExp.exp_tag,"
+        "       detInputExp.iteration,"
+        "       detInputExp.det_id"
         "   HAVING"
         "       rawDetrendExp.imfiles = COUNT(detResidImfile.class_id)"
