Fixed an error for zero curvature