Corrected MainPanel.