Remove the self id from the node path.