Fix model.set