fix bug with segmented edges displaying their SVG marker-end in the middle of their segments