fixed directory listing problem