fix bug with empty item type

fix bug with empty item type