Fix "checkValidity"