Functions to fix nodes with same alias

May serve as an example on how to fix nodes with same alias issue. The functions are there, they just need to be called.