Fix a bug in the regression in Mining Model.

Add a simple management of the model chain.