added an assertion to check if the created ItemData has a correct item ID.