Check the visibility of the global variable before placing it into the stubs