fixed a bug with model validation