Fix an issue for users with more than 1 group trying to open /viewGroups