Problem with polyline material

This is discussed in Polyline material problem