Fixed issues stopping command and spell registering.