diff --git a/doc/dynare.texi b/doc/dynare.texi
index 55d8ea5b02aa91ec2e6b0db16799dd4b547df025..f7e23a9c180fe1a503a962588dbc4bdce95eeacf 100644
--- a/doc/dynare.texi
+++ b/doc/dynare.texi
@@ -10071,8 +10071,9 @@ following @LaTeX{} packages: @code{longtable, booktabs}
 
 Writes descriptive statistics about the prior distribution to
 a @LaTeX{} table in a file named @code{<<M_.fname>>_latex_priors_table.tex}. The command writes the prior
-definitions currently stored. Thus, the command must be invoked after a call to @code{estimation}. Requires the
-following @LaTeX{} packages: @code{longtable, booktabs}
+definitions currently stored. Thus, the command must be invoked after the @code{estimated_params} block. The command
+returns an error if no prior densities are defined (ML estimation). Requires the following @LaTeX{}
+packages: @code{longtable, booktabs}
 @end deffn
 
 @deffn {MATLAB/Octave command} collect_LaTeX_Files (@code{M_}) ;
diff --git a/tests/TeX/fs2000_corr_ME.mod b/tests/TeX/fs2000_corr_ME.mod
index 6ac5cef60fd7f22e001f9e6f6c0286b10aad1ea5..a26447fb058b8480deac5ac4dad9072a7de024c4 100644
--- a/tests/TeX/fs2000_corr_ME.mod
+++ b/tests/TeX/fs2000_corr_ME.mod
@@ -160,10 +160,10 @@ stderr gy_obs, inv_gamma_pdf, 0.001, inf;
 corr gp_obs, gy_obs,normal_pdf, 0, 0.2;
 end;
 
-estimation(mode_compute=8,order=1,datafile='../fs2000/fsdat_simul',mode_check,smoother,filter_decomposition,mh_replic=4000, mh_nblocks=1, mh_jscale=0.8,forecast = 8,bayesian_irf,filtered_vars,filter_step_ahead=[1,3],irf=20,moments_varendo,contemporaneous_correlation,conditional_variance_decomposition=[1 2 4]) m P c e W R k d y;
-
 write_latex_prior_table;
 
+estimation(mode_compute=8,order=1,datafile='../fs2000/fsdat_simul',mode_check,smoother,filter_decomposition,mh_replic=4000, mh_nblocks=1, mh_jscale=0.8,forecast = 8,bayesian_irf,filtered_vars,filter_step_ahead=[1,3],irf=20,moments_varendo,contemporaneous_correlation,conditional_variance_decomposition=[1 2 4]) m P c e W R k d y;
+
 trace_plot(options_,M_,estim_params_,'PosteriorDensity',1);
 trace_plot(options_,M_,estim_params_,'StructuralShock',1,'eps_a')