fix a bug in model.validate()
Merge branch 'develop'