unfixed the stats script