fixed infinity problem in stats percentages