prevent opendir [fixed]