diff --git a/matlab/+mom/run.m b/matlab/+mom/run.m
index 969fc13c7b36374b3a6ab12b9ac3f604549f814a..0e761909f5634eda70dcfd87620c2074c1bf4156 100644
--- a/matlab/+mom/run.m
+++ b/matlab/+mom/run.m
@@ -364,7 +364,7 @@ analytic_jacobian_optimizers = [1, 3, 4, 13, 101]; %these are currently supporte
 options_mom_.initialize_estimated_parameters_with_the_prior_mode = 0; % needed by set_prior.m
 options_mom_.figures.textwidth = 0.8; %needed by plot_priors.m
 options_mom_.ramsey_policy = 0; % needed by evaluate_steady_state
-options_mom_.debug = false; %needed by resol.m
+options_mom_ = set_default_option(options_mom_,'debug',false); %neeeded by e.g. check_plot
 options_mom_.risky_steadystate = false; %needed by resol
 options_mom_.threads = options_.threads; %needed by resol
 options_mom_.jacobian_flag = true;