fix wrong grouping