Nested swapped instances missing


I moved (cut) components form one file (published) to a new library. Most of the components were nested instances. After moving them to the new library the nested instances lost their connection the main component.

File A:
Component A with nested instance slot
Instances from Component A with nested instances from File B / Components

File B:
Components (Images)

Is this a bug or did I something wrong? Is there at least a plugin to relink all instances to their main components in once?