Fixed failure checks.