fix bug in failure diags