fix log grouping