fix statisticfile bug