MainWindow pointers fix.