corrects item_id to integer