minor fix in mainwindow