fix freeze when closing report shown in a pane