update throws Exception in Model