diff --git a/matlab/dynare_m.exe b/matlab/dynare_m.exe
index 331fce85606deb7c89c68e0e10d20fb91f6c7277..4cf971d0f19e261b0c998b8f27abe380c6479f4c 100644
Binary files a/matlab/dynare_m.exe and b/matlab/dynare_m.exe differ
diff --git a/matlab/metropolis.m b/matlab/metropolis.m
index 74076a5bfadce7bc012fe69634f93ba15a4702ae..ef047a76a9083ef4f55763772b6528cd49f7aa06 100644
--- a/matlab/metropolis.m
+++ b/matlab/metropolis.m
@@ -3086,7 +3086,7 @@ function metropolis(xparam1,vv,gend,data,rawdata,mh_bounds)
 	  end
 	  title(name,'Interpreter','none')
 	end
-	if ~~isempty(dsge_prior_weight)
+	if isempty(dsge_prior_weight)
 	  eval(['print -depsc2 ' fname_ '_Bayesian_IRFdsge_' deblank(tit(i,:)) int2str(nbplt)]);
 	  eval(['print -dpdf ' fname_  '_Bayesian_IRFdsge_' deblank(tit(i,:)) int2str(nbplt)]);
 	  saveas(hh,[fname_  '_Bayesian_IRFdsge_' deblank(tit(i,:)) int2str(nbplt) '.fig']);