Fixed bug relating to grouping line