Check command + recursive simulations

Hi there, two questions:

(1) when I try to check for Blanchard conditions in DYNARE 4 (using check command), I get the following error message:

??? Undefined function or variable “sdim”.

Error in ==> dr1 at 284
nba = nd-sdim;

when I do it in version 3.xx, everithing is fine (I updated DYNARE 4 yesterday night)

(2) which part of the DYNARE codes I should modify to get some ‘recursive’ simulations under perfect foresight? I want agents to be surprised by TFP innovations period by period, instead of allowing them to anticipate the whole sequence.
Thanks in advance

Regards

Massimiliano