also fix polymorphic_type in history tables used