fixing pie graph