correct close polygon