Don't apply spells to dead actors
Fix invalid casts