Fix the saving of data.