fixed error in get_all groups