fix clear old chart when resize popup or browser