Fixed intermediate points dissapear bug.
Merge pull request #743 from Bars107/master

Fixed intermediate points dissapear bug.