Index: trunk/ippTools/src/dettool.c
===================================================================
--- trunk/ippTools/src/dettool.c	(revision 9311)
+++ trunk/ippTools/src/dettool.c	(revision 9313)
@@ -2179,5 +2179,6 @@
         "   detRun.state = 'run'"
         " GROUP BY"
-        "     rawDetrendExp.exp_tag"
+        "     rawDetrendExp.exp_tag,"
+        "     detRun.position"
         " HAVING MAX(rawDetrendExp.imfiles) = COUNT(detStackedImfile.class_id)"
         );
