fixing when a directory is a broken link