fix issue with model validation