Fixes a bug with the pie view not showing the appropriate percentages