Fix left-over ref to window global