diff --git a/Examples/CostZones.hpp b/Examples/CostZones.hpp
index 59b9049fee7dcb885454f8f67c7fe28c7112fb48..fd7f8004519e2b6aa788286b2b20253f482141a5 100644
--- a/Examples/CostZones.hpp
+++ b/Examples/CostZones.hpp
@@ -187,8 +187,11 @@ private:
                 // Zone bounds update
                 if( _zonebounds.back()[_it.level()] == std::pair<int,int>(-1,-1) ) {
                     _zonebounds.back()[_it.level()].first = _it.getCurrentGlobalIndex();
+                    _zonebounds.back()[_it.level()].second = 1;
                 } else {
-                    _zonebounds.back()[_it.level()].second = _it.getCurrentGlobalIndex();
+                    _zonebounds.back()[_it.level()].second++;
+                    // This was to keep the end index
+                    // _zonebounds.back()[_it.level()].second = _it.getCurrentGlobalIndex();
                 }
                 
             } else {