Fix errors in nurbs