fix optgroups cloning