Fixed a doc test introducing a global