Fixed item name being interpreted as id

Fixed problem when item name string is wrongly interpreted as the id
causing conversion errors.
Fixed item name parsing