Fix for bug #20338 (https://gna.org/bugs/?20338), the new tensor name is now set.
Authored by: bugman 2012-11-30
Parent: [r18060]
Child: [r18062]