Removed bug in bitgraph