Copy type field directly instead of calling get_type to avoid

No match.