Fix service serialization.