change FailedDir to FreeDir