fixed bug with multiple stats files