Removed buggy unuseful code from stats.