Fixed spreadsheet generation.