fix directory not displayed error