Fix an incorrect type id initialization for items