fix serialization types