Fix #18129. Dynamic groups according to selected period in habitats -> progress