Fix polyline outline material at the end points.