Prevent readdir failure