Fixed saving data to excel.