Fix two pane mode