fixed stat issue