diff --git a/methods/Method_D.cpp b/methods/Method_D.cpp
index f79133f883e5e91f9a65195c309ba4d5f9f535a6..39ccc0ba305abcd9a808562c30f3dfcf44c944b9 100644
--- a/methods/Method_D.cpp
+++ b/methods/Method_D.cpp
@@ -497,9 +497,13 @@ void Method_D::OutputVoroGraph(const string & frameId,  std::vector<std::pair<po
      if(_plotVoronoiCellData)
      {
           string parameters_rho="python "+_scriptsLocation+"/_Plot_cell_rho.py -f \""+ voronoiLocation + "\" -n "+ _trajName+"_id_"+_measureAreaId+"_"+frameId+
-               " -g "+_geometryFileName+" -p "+_trajectoryPath + " -i";
+               " -g "+_geometryFileName+" -p "+_trajectoryPath;
           string parameters_v="python "+_scriptsLocation+"/_Plot_cell_v.py -f \""+ voronoiLocation + "\" -n "+ _trajName+"_id_"+_measureAreaId+"_"+frameId+
                " -g "+_geometryFileName+" -p "+_trajectoryPath;
+
+          if(_plotVoronoiIndex)
+               parameters_rho += " -i";
+
           Log->Write("INFO:\t%s",parameters_rho.c_str());
           Log->Write("INFO:\tPlotting Voronoi Cell at the frame <%s>",frameId.c_str());
           system(parameters_rho.c_str());