fix pie chart callbacks #2

Fixes #2