Fix collapsing panels.