Fix pullGlobalsIntoVariables.