Fix an issue with wrong graph getting selected.