I am sorry, but I do not understand what you mean by "it doesn't work on line between the elements". Can you explain in more detail what you are doing, what the expected result is, and what the actual result is?
Maybe you could add illustrations of the actual result and mocked illustrations of the expected result? Please see How to upload files to yEd Q&A? for information on uploading files such diagrams and pictures.