Fix wrong variable in model's template