Fix deprecated PanelManager