Bug fix to torus knot geometry