diff --git a/screening/source/java/OpenBISScreeningML.java b/screening/source/java/OpenBISScreeningML.java
index b95a5dff57be06b32ed79c4b124e8d17bb5e8c09..a29d5dbc8d57f45dbcd3176658219fbfbd171c5c 100644
--- a/screening/source/java/OpenBISScreeningML.java
+++ b/screening/source/java/OpenBISScreeningML.java
@@ -1491,7 +1491,6 @@ public class OpenBISScreeningML
         int numberOfTiles = tileNumberIterable.getMaximumNumberOfTiles();
         result[0] = new Object[imageDatasets.size() * imageChannels.size() * numberOfTiles][1];
         result[1] = new Object[imageDatasets.size() * imageChannels.size() * numberOfTiles][15];
-        int dsIdx = 0;
         int resultIdx = 0;
         for (ImageDatasetReference ds : imageDatasets)
         {
@@ -1522,7 +1521,6 @@ public class OpenBISScreeningML
                     resultIdx++;
                 }
             }
-            dsIdx++;
         }
         try
         {