Fixing bug in worksheet.