Fix issue when displaying doughnut chart