Fix first calculation only if model is set