Fixed clearing of polyline on chart