fix directory recursive listing bug.