Fix new stat failure detection