When a node is dragged near another node, it flips direction. A workround is to switch of the snapping options in Track Laying Options.