Fix MainWindow