fix select widget to work correctly with single select