fixed polyline bugs