Attempted fix for spell sync between client and server, gui doesn't
crash now. Spell casting is bugged on dedicated software.