Estimation with posterior mode

I need to reestimate a model with estimated posterior mode of parameters distribution.
When I replace a priori, with estimated modes my model do not work.
Can anyone give me an exemple how do this task or any advice?
Which block I should delete when a place estimated dynamic parameters?
When I replace a priori, with estimated modes my model do not work.
Can anyone give me an exemple how do this task or any advice?
Which block I should delete when a place estimated dynamic parameters?