Fix serialization of unmodified elements.