fix deserialize for Registration