Fixed bug where the game would crash when attempting to enchant something.