Fix catch of polymorphic type by value