Fixing exporting spreadsheet