fix directoryMap