Fixed type in MainWindow.