spreadsheet only working once, fixed