Fixed getGroups bug for Token