fix stat print