fix directory listing option