Fixed exception namespacing bug