diff --git a/Modules/Applications/AppClassification/include/otbTrainVectorBase.txx b/Modules/Applications/AppClassification/include/otbTrainVectorBase.txx
index 52263be4aaf49a7f3d85e2eb6f364f446ad57027..9e91e70fc50a04e73ae4e33e5231d5bfc2584bf5 100644
--- a/Modules/Applications/AppClassification/include/otbTrainVectorBase.txx
+++ b/Modules/Applications/AppClassification/include/otbTrainVectorBase.txx
@@ -308,6 +308,7 @@ TrainVectorBase::ExtractSamplesWithLabel(std::string parameterName, std::string
 
     samplesWithLabel.listSample = shiftScaleFilter->GetOutput();
     samplesWithLabel.labeledListSample = target;
+    samplesWithLabel.listSample->DisconnectPipeline();
     }
 
   return samplesWithLabel;