Fix saving rootDirs (refresh before save)