Problem with some values of Steady State

Hi everyone, I am currently working on a Ramsey policy problem in my model. The problem I am facing now deals with the Steady State computation.
I set my conditional Steady State and I noticed that for some range of values of my instrument, some variables are complex.

Since my computation of the Steady State is obtained in an analytical way, I would like to now if there is a way to avoid the problem, using the Ramsey command.

Thank you in advance, have a nice day!

rams2.mod (6.8 KB)

The following file works on my machine:
rams2.mod (6.7 KB)
You cannot call resid or steady before defining the planner_objective and planner_discount.

Thank you very much for the suggestion! Now my model works!