diff --git a/Testing/Code/FeatureExtraction/otbScalarImageToTexturesFilter.cxx b/Testing/Code/FeatureExtraction/otbScalarImageToTexturesFilter.cxx
index dadae54aef03e8216fb7cbf06d97dc1a92ae930a..1bbe360631e58a6663fec86af5bf6c6bee330395 100644
--- a/Testing/Code/FeatureExtraction/otbScalarImageToTexturesFilter.cxx
+++ b/Testing/Code/FeatureExtraction/otbScalarImageToTexturesFilter.cxx
@@ -88,6 +88,7 @@ int otbScalarImageToTexturesFilter(int argc, char * argv[])
   oss<<outprefix<<"Energy.tif";
   writer->SetInput(filter->GetEnergyOutput());
   writer->SetFileName(oss.str());
+  writer->Update();
 
   oss.str("");
   oss<<outprefix<<"Entropy.tif";