Fix grouping when xml datasource.