fix Issue 12309 - The template fullyQualifiedName returns wrong result