Fix a directory operation mistake.