fix pane state