Fixed call to Window.focus()