In UEdGraph_GenericGraph::RebuildGenericGraph() function, after renaming a node the outer of a node must be the same as before:
Node->Rename(nullptr, Graph, REN_DontCreateRedirectors | REN_DoNotDirty)
this line must change to:
Node->Rename(nullptr, NodeMap[Graph->AllNodes[i]], REN_DontCreateRedirectors | REN_DoNotDirty);