Fix winding order calculation.