fix bug for pie chart
Support refresh page