Problem with estimation command

Hi I run a bayes estimation. It runs fine in my office comp. In my hmoe computer where I have a newer matlab version 7.9. It gives the following error error message… If I increase the std error to .1 for the beta prior this problem disappears but then I get nonsense estimates.
Any clue?
??? Attempted to access k(1); index out of bounds because numel(k)=0.

Error in ==> draw_prior_density at 93
binf = abscissa(k(1));

Error in ==> plot_priors at 52
[x,f,abscissa,dens,binf,bsup] = draw_prior_density(i,bayestopt_);

Error in ==> dynare_estimation_1 at 87

Error in ==> dynare_estimation at 62

Error in ==> ap17_adj_ret_est at 225

Error in ==> dynare at 132
evalin(‘base’,fname) ;