hack fix GUI components disappearing when selecting spells.