Fixed bug in validation system.