fix popup with optgroup