bug fix when several group are present