fixed an issue when saving spaces without parent space