fix window.hack