fix error reporting, where choices is list of flat values