bug fix in Invoke-AllChecks