bug fix directory browsing