properly handle round brackets number for high priority groups (ending
brackets were hardcoded and preventing proper list usage)