How to "delete indicators window" without closing the chart?

 
Dear all, After I inserted the Panel Indicator(created after compiling Indicators/myindicators/mypanel/PanelIndicator.mq5) into the chart, I found that each time I click the context sensitive menu "delete the indicators window" of the indicator so as to remove the indicator from the chart, the chart will also be closed. How to avoid closing the chart when "delete indicators window"? Many thanks for your time and efforts. Your sincerely, taozemin.