fixed rendering dendrogram to a file