fixed saved data to be escaped properly