fix the statistics file problem