Bugfix for closing opt group tag