Fixed bug with saving spreadsheets