Bug fix for the spreadsheet examples