fix opendir