spreadsheet: fixes for record selection and simplification