fixed problem in stats