fix stat error