Fixed references to window using imported Global module