Fixed dragged relationship for undo redo

Fixed bug which prevented the relationship links to be retained during
the clone creation for undo/redo