diff --git a/experiments/jobscripts/testing/cali.sh b/experiments/jobscripts/testing/cali.sh
index 1c61c0b2770a338529f1c7c8b57ea9bf649e37ee..da100a684848477b3dabfa6df50340220e0c4c23 100644
--- a/experiments/jobscripts/testing/cali.sh
+++ b/experiments/jobscripts/testing/cali.sh
@@ -14,4 +14,4 @@ module load openmpi
 
 source experiments/slurm_header.sh
 
-srun julia --project=experiments --threads $SLURM_CPUS_PER_TASK experiments/run_experiments.jl -- data=california_housing output_path=results mpi grid_search n_individuals=10 n_each=$SLURM_CPUS_PER_TASK threaded > experiments/grid_search_california_housing.log
\ No newline at end of file
+srun julia --project=experiments --threads $SLURM_CPUS_PER_TASK experiments/run_experiments.jl -- data=california_housing output_path=results mpi grid_search n_individuals=10 n_each=nothing threaded > experiments/grid_search_california_housing.log
\ No newline at end of file
diff --git a/experiments/setup_env.jl b/experiments/setup_env.jl
index 8cf0de5508f44d5f918cb68e8a67a6120174e936..699dd581b3853925459a7073a2317dcb165a6f24 100644
--- a/experiments/setup_env.jl
+++ b/experiments/setup_env.jl
@@ -69,7 +69,8 @@ const N_IND_SPECIFIED = n_ind_specified
 if any(contains.(ARGS, "n_each="))
     n_each =
         ARGS[findall(contains.(ARGS, "n_each="))][1] |>
-        x -> replace(x, "n_each=" => "") |> x -> parse(Int, x)
+            x -> replace(x, "n_each=" => "") |> 
+            x -> x == "nothing" ? nothing : parse(Int, x)
 else
     n_each = 32
 end