Numerical issue while evaluating nurbs around last knot vector value

I’ve found it, the error was in the algorithm I wrote.
Mathematically the problem is periodic when doing a loop around the circle, but what I’ve wrote wasn’t taking the periodicity fully into account…
So the nurbs was evaluated out of the knot vector span, which leads to the error I was observing.
Thank’s Menno for your aswers.