fix bug with draw polyline