Fix serialization.