remove derived fields before saving