Bug fix: list directory works buggy.