fix for multiple optgroups