Fix bug on creating worksheet.