Fixed intermediate points dissapear bug.