Index: trunk/ippScripts/scripts/detrend_stack.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_stack.pl	(revision 10742)
+++ trunk/ippScripts/scripts/detrend_stack.pl	(revision 11151)
@@ -50,6 +50,6 @@
     };
 
-die "Unrecognised detrend type: $det_type\n" if not defined RECIPES()->{$det_type};
-my $recipe = RECIPES()->{$det_type}; # Recipe to use in stacking
+my $recipe = RECIPES()->{lc($det_type)}; # Recipe to use in stacking
+die "Unrecognised detrend type: $det_type\n" if not defined $recipe;
 
 # Look for programs we need
