fix stat code error