Fix some bugs in formatter_spreadsheet (spreadsheet results still buggy)