Fixing errors on exception's namespace