Fix incorrect check on control point count