fix validate model