Fixed bug in Polygon point handling