fix window global