stats script fix