attempted bug fix of polyline behavior