fixed piechart selection issue