diff --git a/matlab/dynare_estimation_init.m b/matlab/dynare_estimation_init.m
index 4e7d8c1d08f29192b81f9884175417fc34011139..fc220af0da6187c8e4dd0372bb3892abfed1245c 100644
--- a/matlab/dynare_estimation_init.m
+++ b/matlab/dynare_estimation_init.m
@@ -335,7 +335,7 @@ nvx = estim_params_.nvx;
 ncx = estim_params_.ncx;
 nvn = estim_params_.nvn;
 ncn = estim_params_.ncn;
-if isfield(estim_params_,'param_vals')
+if ~isempty(estim_params_.param_vals)
   M.params(estim_params_.param_vals(:,1)) = xparam1(nvx+ncx+nvn+ncn+1:end);
 end;
 oo_.steady_state = evaluate_steady_state(oo_.steady_state,M,options_,oo_,steadystate_check_flag);