fixed print loop upon bad dir entry