another directory related bug fixed