diff --git a/src/cluster/cluster.cpp b/src/cluster/cluster.cpp
index bcf6f4240978bd4ac9fe6e66f7135ca59c1d50e1..cd03e3c0e0f5425df518f6b52ee77414b22b027e 100644
--- a/src/cluster/cluster.cpp
+++ b/src/cluster/cluster.cpp
@@ -440,8 +440,34 @@ void cluster(string config_file, string data_file, string output_path) {
 	  tqev_2[ti] = tqev[ti];
 	  tqsv_2[ti] = tqsv[ti];
 	}
+	int nxi_2 = nxi;
+	int nsph_2 = nsph;
+	np_int mxndm_2 = mxndm;
+	int inpol_2 = inpol;
+	int iavm_2 = iavm;
+	int npnt_2 = npnt;
+	int npntts_2 = npntts;
+	int isam_2 = isam;
+	int lm_2 = lm;
+	double th_2 = th;
+	double thstp_2 = thstp;
+	double thlst_2 = thlst;
+	double ths_2 = ths;
+	double thsstp_2 = thsstp;
+	double thslst_2 = thslst;
+	double ph_2 = ph;
+	double phstp_2 = phstp;
+	double phlst_2 = phlst;
+	double phs_2 = phs;
+	double phsstp_2 = phsstp;
+	double phslst_2 = phslst;
+	double th1_2 = th1;
+	double ph1_2 = ph1;
+	double ths1_2 = ths1;
+	double phs1_2 = phs1;
+	double thsca_2 = thsca;
     
-	jer = cluster_jxi488_cycle(jxi488, sconf_2, gconf_2, c1_2, c1ao_2, c2_2, c3_2, c4_2, c6_2, c9_2, output, output_path, gaps_2, tqse_2, tqspe_2, tqss_2, tqsps_2, zpv_2, gapm_2, gappm_2, nth, nths, nph, nphs, nk, nks, nkks, argi_2, args_2, gap_2, gapp_2, tqce_2, tqcpe_2, tqcs_2, tqcps_2, duk_2, tppoan, cextlr_2, cext_2, cmullr_2, cmul_2, gapv_2, tqev_2, tqsv_2, nxi, nsph, mxndm, inpol, iavm, npnt, npntts, isam, lm, th, thstp, thlst, ths, thsstp, thslst, ph, phstp, phlst, phs, phsstp, phslst, th1, ph1, ths1, phs1, thsca, u, us, un, uns, up, ups, unmp, unsmp, upmp, upsmp, scan, cfmp, sfmp, cfsp, sfsp, sqsfi, exri, lcalc, arg, wn, vk, ndit, am, isq, ibf);
+	jer = cluster_jxi488_cycle(jxi488, sconf_2, gconf_2, c1_2, c1ao_2, c2_2, c3_2, c4_2, c6_2, c9_2, output, output_path, gaps_2, tqse_2, tqspe_2, tqss_2, tqsps_2, zpv_2, gapm_2, gappm_2, nth, nths, nph, nphs, nk, nks, nkks, argi_2, args_2, gap_2, gapp_2, tqce_2, tqcpe_2, tqcs_2, tqcps_2, duk_2, tppoan, cextlr_2, cext_2, cmullr_2, cmul_2, gapv_2, tqev_2, tqsv_2, nxi_2, nsph_2, mxndm_2, inpol_2, iavm_2, npnt_2, npntts_2, isam_2, lm_2, th_2, thstp_2, thlst_2, ths_2, thsstp_2, thslst_2, ph_2, phstp_2, phlst_2, phs_2, phsstp_2, phslst_2, th1_2, ph1_2, ths1_2, phs1_2, thsca_2, u, us, un, uns, up, ups, unmp, unsmp, upmp, upsmp, scan, cfmp, sfmp, cfsp, sfsp, sqsfi, exri, lcalc, arg, wn, vk, ndit, am, isq, ibf);
 
 	delete sconf_2;
 	delete gconf_2;