Fix ClearDirectories