Fixed bug inserting cases in data sheet.