polyline drawing now fixed