Renaming Item Code also changes the Item Name

I am using ERPNext 15 and the renamin tool and it is working good for some items while in some it also changes the Item Name. Can anyone help me with this?