Fixed leaked window.