diff --git a/app/otbPatchesSelection.cxx b/app/otbPatchesSelection.cxx
index 3154b8b7ecb312ec2bc4d5e187efbfc7caf47a3e..8cde71d2d7875ef601c3f7420c6afc456bc0ca3f 100644
--- a/app/otbPatchesSelection.cxx
+++ b/app/otbPatchesSelection.cxx
@@ -249,7 +249,7 @@ public:
     m_StreamingManager->SetAvailableRAMInMB(GetParameterInt("ram"));
 
     UInt8ImageType::Pointer inputImage;
-    if (GetParameterInt("nockeck")==1)
+    if (GetParameterInt("nocheck")==1)
       inputImage = GetParameterUInt8Image("mask");
     else
       inputImage = m_MorphoFilter->GetOutput();