selectOpts generated code fixed