Fixed confirm button.
Fixed spreadsheet state problem.