bug in modified winding number