diff --git a/ptx_nmasks.cc b/ptx_nmasks.cc
index f09aafc5844594690c1acb0efd7e1a2abf73cf54..4b661e021ce46b4d95eaf322395a6ecc8f6be04e 100644
--- a/ptx_nmasks.cc
+++ b/ptx_nmasks.cc
@@ -49,7 +49,7 @@ void nmasks()
     for(unsigned int j=0;j<seeds.size();j++)
       if(j!=i)
 	tmpvol+=seeds[j];
-    if(i<=1)
+    if(i>=1)
       stline.pop_waymasks();
     stline.add_waymask(tmpvol);