Fix bug in save_dendrogram