diff --git a/pub/lib/plot.cpp b/pub/lib/plot.cpp
index ac9be1311454783b16f330e90c4a9107900b1a95..84322ebc7c3597790726d25a80534aca70d4b639 100644
--- a/pub/lib/plot.cpp
+++ b/pub/lib/plot.cpp
@@ -386,7 +386,7 @@ int plot_curve_refine(CPlot* plot, const COlc* fc, int k, int j, int cstyle)
             yf.push_back(p.yd);
         }
         plot->add_spec(
-            true, j==0, cstyle, xf, yf, vector<double>(), fc->V[j]->z_str(), fc->xco.str_std(),
+            true, is==0, cstyle, xf, yf, vector<double>(), fc->V[j]->z_str(), fc->xco.str_std(),
             fc->yco.str_std(), "curve file " + S(k) + " spectrum " + S(j));
         npts += segments[is].size();
     }
diff --git a/pub/plot/dualplot.cpp b/pub/plot/dualplot.cpp
index 580f281e09dc3a99c1fa3081c5f55b722a4a8e09..be95b3e34595a7236b76b98938edf8f0eedafaa3 100644
--- a/pub/plot/dualplot.cpp
+++ b/pub/plot/dualplot.cpp
@@ -197,7 +197,7 @@ void CPlot::plot_frame(const string& xlabel, const string& ylabel)
 //! Plot one spectrum.
 
 void CPlot::add_spec(
-    bool as_line, bool new_style, int style_no, const vector<double>& xp, const vector<double>& yp,
+    bool as_line, bool new_slice, int style_no, const vector<double>& xp, const vector<double>& yp,
     const vector<double>& dyp, const vector<string>& z, const string& xco, const string& yco,
     const string& info)
 {
@@ -251,7 +251,7 @@ void CPlot::add_spec(
 
     // Postscript copy:
     char outlin[mLin];
-    if (new_style) {
+    if (new_slice) {
         snprintf(outlin, mLin, "\n%3u [", ++ps_snum);
         ps_accu.push_back(outlin);
         for (int i = 0; i < z.size(); i++) {
diff --git a/pub/plot/dualplot.hpp b/pub/plot/dualplot.hpp
index 5ec57cd6a1f84e462d2cd4c95d27d0973a1bdf8a..0da6f8a8905d9c6e59a62cd43154f3fa9238545b 100644
--- a/pub/plot/dualplot.hpp
+++ b/pub/plot/dualplot.hpp
@@ -31,7 +31,7 @@ public:
     void clear_frame();
     void plot_frame(const std::string& xlabel, const std::string& ylabel);
     void add_spec(
-        bool as_line, bool new_style, int style_no, const std::vector<double>& xp,
+        bool as_line, bool new_slice, int style_no, const std::vector<double>& xp,
         const std::vector<double>& yp, const std::vector<double>& dyp,
         const std::vector<std::string>& z, const std::string& xco, const std::string& yco,
         const std::string& info);