If the source node is a function node, press and hold Ctrl
key during the drag and drop, otherwise the target will be connected not by relation, but as a new function argument.
Do not drag and drop from/to the attribute controls, use ID or the concept text (the green part) instead: