fixed forest grouping bug