quick bug fix for validation