fixed bug stats script