Changed position copying from = to copy()

spStart.position = I.point; -> spStart.position.copy(I.point);
spEnd.position = I.point; -> spEnd.position.copy(I.point);