fixed NaN bug when calculating percents