Fixed item type logic bug. Relates to #65