fixed large graph building failure

:(