Fix thread statistics.