Fix readdir operations