Repaired the calling of the main window.