fix schema validation in Model