fixed init readdir