Fixed a potential race condition with the spelling class.