Fixed comparing spells, so all coded functions work