The way UID works now, is that one is generated only when it is requested and if that UID is requested in runtime, then it is not serialized. Thus the next runtime session one is requested a new one is generated. I could change this behaviour so that a UID is always generated when the node is created and this way it will be serialized and persistent. The only reason I haven’t done this already is to avoid generating UIDs for nodes that we don’t need a UID for and thus speed up deserialization.