fix polymorphic types coming back as resource