diff --git a/src/sphere/sphere.cpp b/src/sphere/sphere.cpp
index b38d2c27a847324edce1de0c263eac56ee0a021b..d123b0ff3927e89da061c1c946190575d19afa9c 100644
--- a/src/sphere/sphere.cpp
+++ b/src/sphere/sphere.cpp
@@ -597,7 +597,7 @@ int sphere_jxi488_cycle(
       logger->log(message, LOG_INFO);
       sid->update_order(new_lm);
       is_first_scale = true;
-      jw = 1;
+      // jw = 1;
       l_max = new_lm;
     }
   }
@@ -744,7 +744,7 @@ int sphere_jxi488_cycle(
     double ph = sa->ph;
     for (int jph484 = 0; jph484 < sa->nph; jph484++) {
       int jph = jph484 + 1;
-      bool goto182 = (sa->nk == 1) && (jxi > 1);
+      bool goto182 = (sa->nk == 1) && (!is_first_scale);
       if (!goto182) {
 	upvmp(th, ph, 0, sid->cost, sid->sint, sid->cosp, sid->sinp, sid->u, sid->upmp, sid->unmp);
       }
@@ -779,7 +779,7 @@ int sphere_jxi488_cycle(
 	    phs = ph + phsph;
 	    if (phs >= 360.0) phs -= 360.0;
 	  }
-	  bool goto190 = (nks == 1) && ((jxi > 1) || (jth > 1) || (jph > 1));
+	  bool goto190 = (nks == 1) && ((!is_first_scale) || (jth > 1) || (jph > 1));
 	  if (!goto190) {
 	    upvmp(ths, phs, icspnv, sid->costs, sid->sints, sid->cosps, sid->sinps, sid->us, sid->upsmp, sid->unsmp);
 	    if (gconf->isam >= 0) {