Fixed issues with api/xgroups