Fix dendrogram for first creation and empty data