fix pane element selection