Index: trunk/ippTasks/destreak.pro
===================================================================
--- trunk/ippTasks/destreak.pro	(revision 30821)
+++ trunk/ippTasks/destreak.pro	(revision 30855)
@@ -113,4 +113,7 @@
 
   task.exec
+    # we check twice in case an entry has been removed from DS_STAGE
+    if ($magicDSStage >= $DS_STAGE:n) set magicDSStage = 0
+
     $run = magicdstool -todestreak -stage $DS_STAGE:$magicDSStage
     $magicDSStage ++
