Fixed (?) code for badCurve