Changing group during rendering