Fixed issue with model.set().