weird polyline behavior