Excel Spreadsheet is not exporting correctly