fix bug in listing of groups