Fixes window.focus