fix error in donut plot