Fixed bug when selecting two graphs