This doesn't happen very often but clipping 2 nodes with the same title can fail and create a relationship with itself. Ideally the autocomplete/save would take into account the nid in case there are 2 nodes of the same name in the parent category. However a smaller fix is to take into account the node type in clipper_insert similar to the way the autocomplete works.