-fixed bug in gui MainWindow