Minor performace fix for ``model``