Fix bug in Model properties setter.