Index: trunk/ippScripts/scripts/detrend_stack.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_stack.pl	(revision 17231)
+++ trunk/ippScripts/scripts/detrend_stack.pl	(revision 17241)
@@ -62,8 +62,9 @@
 
 $ipprc->define_camera($camera);
+$det_type = uc($det_type);
 
 # Recipes to use as a function of detrend type
 $reduction = "DETREND" unless defined $reduction;
-my $recipe = $ipprc->reduction($reduction, uc($det_type) . '_STACK'); # Recipe name to use
+my $recipe = $ipprc->reduction($reduction, $det_type . '_STACK'); # Recipe name to use
 
 # values to extract from output metadata and the stats to calculate
