fix readdir in inner dirs