missing closedir when there's no results