Fixed multithread statistics counting.