Fix clicking on graphs