Attempted to access k(1); index out of bounds because numel(

I was trying to replicate the Funke and Paetz 2010 paper . But I keep on getting the following error:

Attempted to access k(1); index out of bounds because numel(k)=0.
Does anyone know what this error relates to?
Thanks in advance.
model.mod (11.3 KB)

The crash comes from the fact that for some parameters, you assign a prior mean of 2 with a beta distribution. But the beta distribution is over the [0,1] interval.

I admit that the error message is not very explicit, we will put a better message in the future versions of Dynare.