Index: trunk/ippScripts/scripts/detrend_stack.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_stack.pl	(revision 9209)
+++ trunk/ippScripts/scripts/detrend_stack.pl	(revision 9225)
@@ -136,5 +136,5 @@
     die "Unable to perform dettool -addstacked: $error_code\n" if not $success;
 
-    unlink $statsFile;
+    unlink $outputStats;
 }
 
