fix NaN show up in stats page when no data