Fix bug with splines knots.