fix scandir