small fix with statistic (avoid false values with empty files)