fix invalid first polygon point