Fix treemap department grouping