Fixed error in select field due to new opt group logic

Signed-off-by: Elliot Condon <e@elliotcondon.com>