Fixed bug with setting parent window.