fix bug for one val for all groups