Fixes svg pie graph generation