fixed issue in create_spreadsheet