Fixed a minor issue in the groups API implementation