Fix get_type_name failure