Fixing issues with highlighting waveforms in dendrogram