Fix two-pane mode bug.