Index: /trunk/ippTools/src/dettool.c
===================================================================
--- /trunk/ippTools/src/dettool.c	(revision 8873)
+++ /trunk/ippTools/src/dettool.c	(revision 8874)
@@ -380,4 +380,11 @@
     {
         bool status = false;
+        // include det_type in the query
+        if (!psMetadataAddStr(where, PS_LIST_TAIL, "det_type", 0, "==", det_type)) {
+            psError(PS_ERR_UNKNOWN, false, "failed to add item det_type");
+            psFree(where);
+            return false;
+        }
+
         psString exp_type = psMetadataLookupStr(&status, config->args, "-exp_type");        if (!status) {
             psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_type");
