fix windows staking on page load