Bugfix in class MainWindow.