Correction to CGPath code.