fix bug responsive for pie chart