In fact, that was not the problem.
I think that is due to the fact that the drawing is made in 2 steps and that the model is not thread safe.
I think that points are added during the drawing of the line, and so when the shapes are drawn, there is an index problem.
But i can't synchronized it...
