curvature bugfix