Fixed main window change