fixed model validation