A wrong lag/lead of a variable in VarOrdering

Could someone please tell me where I should check when this message popped up when I run dynare++?

Caught ogu::Exception: dynamic_atoms.cpp:470: A wrong lag/lead of a variable in VarOrdering::do_pbspbfb

I’ve checked my codes many times but still cannot find out what’s wrong. Is it telling there is mistake in basic syntax, or the model?

Thanks a lot for your time and effort.

please post your code