Fixes error in enchanted items.