fix directories.