Fix crash and CastSpellAns packet