NaN bug fix with percentage of failures