dir listing bug fix