fix small bug with itemdata