Fix loading initial panel as modal window.