fix model validation errors