fixing bug in Model one-2-many setup