fix MainWindow missing