fixing NaN issue in stats