Fix regression introduced by previous fix: manage the case when both original and referenced nuts contains the same object to not transform it twice.