Validation library bug fix