fix afterValidate()