Fix a bug in undefined item_types from previous commit