# \[Bug\] Tree node bad renaming if contains "\_"

**URL:** <https://tech-community.robotics.abb.com/t/bug-tree-node-bad-renaming-if-contains/11213>\
**Category:** UpFeed\
**Created:** [August 10, 2023, 10:31am UTC](https://tech-community.robotics.abb.com/t/bug-tree-node-bad-renaming-if-contains/11213 "2023-08-10T10:31:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DenisFR](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DenisFR](https://tech-community.robotics.abb.com/u/DenisFR)\
**Post date:** [August 10, 2023, 10:31am UTC](https://tech-community.robotics.abb.com/t/bug-tree-node-bad-renaming-if-contains/11213/1 "2023-08-10T10:31:31Z")

</div>

Hello,  
If you copy a tree node (Layout components) containing a “_" in its name, renumbering remove last text after "_” char.  
How to reproduce:  
1- Create a new Station  
2- Create a new Component Group  
3- Rename it “Group\_Test\_Test”  
4-Copy and past it in root  
Its copy is renamed “Group\_Test”, should be " “Group\_Test\_Test\_1”  
If you paste it a second time, RS create a “Group\_Test\_2”.

I think that the method looking for last index fail with text and assume it is a one.  
It should test if last part is a numeric value, else add “\_”.

---

<div class="post-metadata">

**Author:** ![Maxim](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/maxim/32/4429_2.png) [@Maxim](https://tech-community.robotics.abb.com/u/Maxim)\
**Post date:** [August 10, 2023, 12:10pm UTC](https://tech-community.robotics.abb.com/t/bug-tree-node-bad-renaming-if-contains/11213/2 "2023-08-10T12:10:28Z")

</div>

Hello Denis,

Please report this bug via your Local ABB.

Thanks!
