fix polymorphic_type