fix bugs of directory name