fixed bug with polyline