fixed bug with knot vector