Worked arround a bug with setting edge`s pos to nan.
Fixed some bugs of inserting node into edge