diff --git a/aloscene/tensors/augmented_tensor.py b/aloscene/tensors/augmented_tensor.py index a1661f8c..774da007 100644 --- a/aloscene/tensors/augmented_tensor.py +++ b/aloscene/tensors/augmented_tensor.py @@ -611,6 +611,9 @@ def _reset_names(l): self_ref_tensor = self.rename_(*self._saved_names) self_ref_tensor._saved_names = None return self_ref_tensor + elif self._saved_names is not None and not any(v is not None for v in self._saved_names): + self._saved_names = None + return self else: return self