diff --git a/matlab/dynare_estimation_1.m b/matlab/dynare_estimation_1.m
index 84c32369f618eb0f582a5e4bb6cec600d9991fe0..fc4ec91fc3f55fcee28523de4c976c358ce25264 100644
--- a/matlab/dynare_estimation_1.m
+++ b/matlab/dynare_estimation_1.m
@@ -579,7 +579,7 @@ if any(bayestopt_.pshape > 0) && ~options_.mh_posterior_mode_estimation
         disp(sprintf('Log data density [Laplace approximation] is %f.',md_Laplace))
         disp(' ')
     end
-elseif ~any(bayestopt_.pshape > 0) && options_.mh_posterior_mode_estimation
+elseif ~any(bayestopt_.pshape > 0) && ~options_.mh_posterior_mode_estimation
     disp(' ')
     disp('RESULTS FROM MAXIMUM LIKELIHOOD')
     tstath = zeros(nx,1);