Fix bug with the print of the optimal model.