polygon error fix