fixed another crash, this time related to a bad type_name.