correction to polygon and polyline