fixed bug in stats gathering