Getdents bug fix attempt