Fixed a bug that will not be able to get the size of the sheet.