directory bug fix 2