readdir small fix