Bugs fixed in polygon.c