fix stat issue