Bug fix in planegeometry helpers.