fix clicking on pie charts