fix bugs in MainWindow::findMdiChild()