Fix deserialization of linked resources.