diff --git a/Code/DisparityMap/otbPixelWiseBlockMatchingImageFilter.txx b/Code/DisparityMap/otbPixelWiseBlockMatchingImageFilter.txx
index 3d215380c3e0818356eafeb6aada05eee809281b..de2f319cb6a9113f0a03896ad14fb29cd9308cc2 100644
--- a/Code/DisparityMap/otbPixelWiseBlockMatchingImageFilter.txx
+++ b/Code/DisparityMap/otbPixelWiseBlockMatchingImageFilter.txx
@@ -838,7 +838,7 @@ TOutputDisparityImage,TMaskImage,TBlockMatchingFunctor>
   
   // check if the position is a minimum (or maximum if !m_Minimize)
   double curMetric = metricIt.Get();
-  for (unsigned int i=firstNeighbor; i<8 ; i+=stepNeighbor)
+  for (unsigned int i=firstNeighbor; i<8; i+=stepNeighbor)
     {
     if (m_Minimize)
       {