fix for error where an item has no type