Fixed bug for all graphs being the same