bug fix for trying to cast a spell that is unknown