diff --git a/Modules/Applications/AppTest/app/otbTestApplication.cxx b/Modules/Applications/AppTest/app/otbTestApplication.cxx
index 5c88863e5f6affdfd92764badd452eb82b4df77e..a2e9ee940da3b473f8e69fbd152eda675c66256d 100644
--- a/Modules/Applications/AppTest/app/otbTestApplication.cxx
+++ b/Modules/Applications/AppTest/app/otbTestApplication.cxx
@@ -125,8 +125,7 @@ private:
         imgList->GetNthElement( 0 )
       );
       }
-    else if (HasValue("ingroup.images.inputimage") &&
-      IsParameterEnabled("ingroup.images.inputimage",true) )
+    else if (HasValue("ingroup.images.inputimage") && IsParameterEnabled("ingroup") )
       {
       SetParameterOutputImage("outgroup.outputimage",
         GetParameterImage("ingroup.images.inputimage"));