Fixed MainWindow designer loading bug