Fix dendrogram redrawing issue in safari