fix bug with missing pane