Prefilter in estimation

I specified 5 observables in the mod file. When I set prefilter=0, the code can run, but when I set prefilter=6, the following error message popped out:
Declared number of observed variables = 6
Number of variables in the database = 216

??? Error using ==> initial_estimation_checks at 44
Estimation can’t take place because the declared number of observedvariables doesn’t match the number of variables in
the database.

Error in ==> dynare_estimation at 319

Error in ==> news_correlation at 400

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

Obviously, dynare takes the number of observations as the number of variables. It doesn’t work if I change the dimesion of variables from n1 to 1n.

Hi, Can you post your mod file and your data file?
Best, Stéphane.

It seems to be a bug in verion 4.0. I have no problem if switching to Dynare 4.02.