Fix items and inventory scripts.