Spreadsheet: small bugfixes