fix bug, grouping the selection by lines with parathesis