fixing text grouping