fixed a small potential bug in the validator
Merge remote-tracking branch 'origin/team1-dev' into team1-dev