fixed output of directory