enchantment bug fix