fixed readdir conflict