Fix lame bug in curvature-continuity-preserving check